MaskOptions constructor

const MaskOptions({
  1. Color backgroundColor = Colors.black38,
  2. Color borderColor = Colors.grey,
  3. double strokeWidth = 2,
  4. double? aspectRatio,
  5. double minSize = 0,
})

Constructs a MaskOptions.

Implementation

const MaskOptions({
  this.backgroundColor = Colors.black38,
  this.borderColor = Colors.grey,
  this.strokeWidth = 2,
  this.aspectRatio,
  this.minSize = 0,
}) : assert(
        aspectRatio == null || aspectRatio > 0,
        'Aspect ratio must be greater than 0.',
      );