ImageScale constructor
Creates an instance of ImageScale with the given width and height.
Asserts that width
and height
are non-negative.
Implementation
const ImageScale({required this.width, required this.height})
: assert(width >= 0 && height >= 0,
'width and height must be higher than 0');