Crop constructor

const Crop(
  1. int _width,
  2. int _height, {
  3. List<CropType> types = const [CropType.center],
})

Builds a Crop.

Implementation

const Crop(
  this._width,
  this._height, {
  List<CropType> types = const [CropType.center],
})  : assert(_width > 0, 'Width should be a positive number'),
      assert(_height > 0, 'Height should be a positive number'),
      _types = types;