withWidth method

Size withWidth(
  1. double newWidth
)

Returns a new size with the given width and the same height.

Implementation

Size withWidth(double newWidth) {
  return Size(newWidth, height);
}