Offset alongSize(Size other)

Returns the offset that is this fraction within the given size.

Source

Offset alongSize(Size other) {
  return new Offset(dx * other.width, dy * other.height);
}