Thumbnail constructor

const Thumbnail(
  1. int _width,
  2. int _height, {
  3. ResizeType resizeType = ResizeType.clip,
  4. List<CropType> cropTypes = const [CropType.center],
})

Thumbnail constructor

Implementation

const Thumbnail(this._width, this._height,
    {this.resizeType = ResizeType.clip,
    this.cropTypes = const [CropType.center]})
    : assert(_width > 0, 'Width should be a positive number'),
      assert(_height > 0, 'Height should be a positive number');