LightPaintRect constructor

LightPaintRect({
  1. required double progress,
  2. required TargetPosition target,
  3. Color colorShadow = Colors.black,
  4. double opacityShadow = 0.8,
  5. double offset = 10,
  6. double radius = 10,
})

Implementation

LightPaintRect({
  required this.progress,
  required this.target,
  this.colorShadow = Colors.black,
  this.opacityShadow = 0.8,
  this.offset = 10,
  this.radius = 10,
}) : assert(opacityShadow >= 0 && opacityShadow <= 1) {
  _paintFocus = Paint()
    ..color = Colors.transparent
    ..blendMode = BlendMode.clear;
}