withHeight method

Size withHeight(
  1. double newHeight
)

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

Implementation

Size withHeight(double newHeight) {
  return Size(width, newHeight);
}