MaterialBarCodeFrame constructor

MaterialBarCodeFrame({
  1. double expandProgress = 0.4,
  2. double padding = 40,
  3. double height = 150,
  4. double strokeWidth = 4,
  5. double minStrokeWidth = 2,
  6. Radius radius = const Radius.circular(8),
  7. double? expandStartColor,
  8. required double headValue,
  9. required double tailValue,
  10. required double rotationValue,
  11. required int stepValue,
  12. BarcodeScanStatus? status = BarcodeScanStatus.loading,
})

Implementation

MaterialBarCodeFrame(
    {this.expandProgress: 0.4,
    this.padding: 40,
    this.height: 150,
    this.strokeWidth: 4,
    this.minStrokeWidth: 2,
    this.radius: const Radius.circular(8),
    this.expandStartColor,
    required this.headValue,
    required this.tailValue,
    required this.rotationValue,
    required this.stepValue,
    this.status: BarcodeScanStatus.loading})
    : arcStart = _startAngle +
          tailValue * 3 / 2 * math.pi +
          rotationValue * math.pi * 1.7 -
          stepValue * 0.8 * math.pi,
      arcSweep = math.max(
          headValue * 3 / 2 * math.pi - tailValue * 3 / 2 * math.pi,
          _epsilon);