Size constructor

const Size(
  1. int width,
  2. int height
)

Creates a Size with the given width and height.

Implementation

const Size(this.width, this.height) : assert(width >= 0 && height >= 0);