Size constructor

Size({
  1. required int width,
  2. required int height,
})

Creates a Size with the given width and height.

Both dimensions must be non-negative.

Implementation

Size({required this.width, required this.height});