FlutstrapProgress constructor
const
FlutstrapProgress({
- Key? key,
- required double value,
- double? minValue,
- double? maxValue,
- FSProgressVariant variant = FSProgressVariant.primary,
- FSProgressSize size = FSProgressSize.md,
- bool animated = false,
- bool striped = false,
- String? label,
- Widget? customLabel,
- Color? backgroundColor,
- Color? progressColor,
- double? height,
- double? fixedWidth,
- bool expandToFill = true,
- BorderRadiusGeometry? borderRadius,
- Duration animationDuration = const Duration(milliseconds: 500),
- Curve animationCurve = Curves.easeInOut,
- bool validator()?,
Implementation
const FlutstrapProgress({
super.key,
required this.value,
double? minValue,
double? maxValue,
this.variant = FSProgressVariant.primary,
this.size = FSProgressSize.md,
this.animated = false,
this.striped = false,
this.label,
this.customLabel,
this.backgroundColor,
this.progressColor,
this.height,
this.fixedWidth,
this.expandToFill = true,
this.borderRadius,
this.animationDuration = const Duration(milliseconds: 500),
this.animationCurve = Curves.easeInOut,
this.validator,
}) : minValue = minValue ?? 0.0,
maxValue = maxValue ?? 100.0,
assert(value >= 0, 'Value must be non-negative'),
assert((minValue ?? 0.0) < (maxValue ?? 100.0),
'minValue must be less than maxValue');