FFProgressBar constructor

FFProgressBar({
  1. FFProgressBar_FFProgressBarShape? shape,
  2. double? legacyPercent,
  3. FFText? text,
  4. FFColor? legacyProgressColor,
  5. FFColor? legacyBackgroundColor,
  6. FFDimensions? size,
  7. bool? legacyAnimation,
  8. double? legacyStartAngle,
  9. double? legacyBarRadius,
  10. FFDoubleValue? percentValue,
  11. FFColorValue? progressColorValue,
  12. FFColorValue? backgroundColorValue,
  13. FFBooleanValue? animationValue,
  14. FFDoubleValue? startAngleValue,
  15. 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;
}