FFProgressBar constructor
FFProgressBar({
- FFProgressBar_FFProgressBarShape? shape,
- double? legacyPercent,
- FFText? text,
- FFColor? legacyProgressColor,
- FFColor? legacyBackgroundColor,
- FFDimensions? size,
- bool? legacyAnimation,
- double? legacyStartAngle,
- double? legacyBarRadius,
- FFDoubleValue? percentValue,
- FFColorValue? progressColorValue,
- FFColorValue? backgroundColorValue,
- FFBooleanValue? animationValue,
- FFDoubleValue? startAngleValue,
- FFDoubleValue? barRadiusValue,
Implementation
factory FFProgressBar({
FFProgressBar_FFProgressBarShape? shape,
$core.double? legacyPercent,
FFText? text,
FFColor? legacyProgressColor,
FFColor? legacyBackgroundColor,
FFDimensions? size,
$core.bool? legacyAnimation,
$core.double? legacyStartAngle,
$core.double? legacyBarRadius,
FFDoubleValue? percentValue,
FFColorValue? progressColorValue,
FFColorValue? backgroundColorValue,
FFBooleanValue? animationValue,
FFDoubleValue? startAngleValue,
FFDoubleValue? barRadiusValue,
}) {
final result = create();
if (shape != null) result.shape = shape;
if (legacyPercent != null) result.legacyPercent = legacyPercent;
if (text != null) result.text = text;
if (legacyProgressColor != null)
result.legacyProgressColor = legacyProgressColor;
if (legacyBackgroundColor != null)
result.legacyBackgroundColor = legacyBackgroundColor;
if (size != null) result.size = size;
if (legacyAnimation != null) result.legacyAnimation = legacyAnimation;
if (legacyStartAngle != null) result.legacyStartAngle = legacyStartAngle;
if (legacyBarRadius != null) result.legacyBarRadius = legacyBarRadius;
if (percentValue != null) result.percentValue = percentValue;
if (progressColorValue != null)
result.progressColorValue = progressColorValue;
if (backgroundColorValue != null)
result.backgroundColorValue = backgroundColorValue;
if (animationValue != null) result.animationValue = animationValue;
if (startAngleValue != null) result.startAngleValue = startAngleValue;
if (barRadiusValue != null) result.barRadiusValue = barRadiusValue;
return result;
}