TargetImageSize constructor

const TargetImageSize({
  1. int? width,
  2. int? height,
})

Creates a new instance of this class.

The width and height may both be null, but if they're non-null, they must be positive.

Implementation

const TargetImageSize({this.width, this.height})
    : assert(width == null || width > 0),
      assert(height == null || height > 0);