ImageScale constructor

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

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');