MaterialBarCodeFrame constructor
MaterialBarCodeFrame({
- double expandProgress = 0.4,
- double padding = 40,
- double height = 150,
- double strokeWidth = 4,
- double minStrokeWidth = 2,
- Radius radius = const Radius.circular(8),
- double? expandStartColor,
- required double headValue,
- required double tailValue,
- required double rotationValue,
- required int stepValue,
- 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);