FFButton constructor

FFButton({
  1. FFText? text,
  2. FFIcon? legacyIcon,
  3. double? legacyElevation,
  4. @Deprecated('This field is deprecated.') Int64? legacyLegacyFillColor,
  5. @Deprecated('This field is deprecated.') double? legacyWidth,
  6. @Deprecated('This field is deprecated.') double? legacyHeight,
  7. @Deprecated('This field is deprecated.') double? borderRadiusDeprecated,
  8. @Deprecated('This field is deprecated.') Int64? legacyLegacyBorderColor,
  9. double? legacyBorderWidth,
  10. FFColor? legacyFillColor,
  11. FFColor? legacyBorderColor,
  12. FFPadding? iconPadding,
  13. bool? legacyShowLoadingIndicator,
  14. FFBorderRadius? borderRadius,
  15. FFPadding? innerPadding,
  16. FFDisable? disabled,
  17. FFColor? legacyDisabledColor,
  18. bool? hasHoverStyle,
  19. FFColor? legacyHoverColor,
  20. FFColor? legacyHoverBorderColor,
  21. FFColor? legacyHoverTextColor,
  22. double? legacyHoverElevation,
  23. FFColor? legacyDisabledTextColor,
  24. FFDimensions? dimensions,
  25. FFDoubleValue? elevationValue,
  26. FFColorValue? fillColorValue,
  27. FFColorValue? borderColorValue,
  28. FFDoubleValue? borderWidthValue,
  29. FFColorValue? disabledColorValue,
  30. FFColorValue? disabledTextColorValue,
  31. FFColorValue? hoverColorValue,
  32. FFColorValue? hoverBorderColorValue,
  33. FFColorValue? hoverTextColorValue,
  34. FFDoubleValue? hoverElevationValue,
  35. FFBooleanValue? showLoadingIndicatorValue,
  36. FFIconValue? iconValue,
  37. FFButton_FFButtonIconPosition? iconPosition,
})

Implementation

factory FFButton({
  FFText? text,
  FFIcon? legacyIcon,
  $core.double? legacyElevation,
  @$core.Deprecated('This field is deprecated.')
  $fixnum.Int64? legacyLegacyFillColor,
  @$core.Deprecated('This field is deprecated.') $core.double? legacyWidth,
  @$core.Deprecated('This field is deprecated.') $core.double? legacyHeight,
  @$core.Deprecated('This field is deprecated.')
  $core.double? borderRadiusDeprecated,
  @$core.Deprecated('This field is deprecated.')
  $fixnum.Int64? legacyLegacyBorderColor,
  $core.double? legacyBorderWidth,
  FFColor? legacyFillColor,
  FFColor? legacyBorderColor,
  FFPadding? iconPadding,
  $core.bool? legacyShowLoadingIndicator,
  FFBorderRadius? borderRadius,
  FFPadding? innerPadding,
  FFDisable? disabled,
  FFColor? legacyDisabledColor,
  $core.bool? hasHoverStyle,
  FFColor? legacyHoverColor,
  FFColor? legacyHoverBorderColor,
  FFColor? legacyHoverTextColor,
  $core.double? legacyHoverElevation,
  FFColor? legacyDisabledTextColor,
  FFDimensions? dimensions,
  FFDoubleValue? elevationValue,
  FFColorValue? fillColorValue,
  FFColorValue? borderColorValue,
  FFDoubleValue? borderWidthValue,
  FFColorValue? disabledColorValue,
  FFColorValue? disabledTextColorValue,
  FFColorValue? hoverColorValue,
  FFColorValue? hoverBorderColorValue,
  FFColorValue? hoverTextColorValue,
  FFDoubleValue? hoverElevationValue,
  FFBooleanValue? showLoadingIndicatorValue,
  FFIconValue? iconValue,
  FFButton_FFButtonIconPosition? iconPosition,
}) {
  final result = create();
  if (text != null) result.text = text;
  if (legacyIcon != null) result.legacyIcon = legacyIcon;
  if (legacyElevation != null) result.legacyElevation = legacyElevation;
  if (legacyLegacyFillColor != null)
    result.legacyLegacyFillColor = legacyLegacyFillColor;
  if (legacyWidth != null) result.legacyWidth = legacyWidth;
  if (legacyHeight != null) result.legacyHeight = legacyHeight;
  if (borderRadiusDeprecated != null)
    result.borderRadiusDeprecated = borderRadiusDeprecated;
  if (legacyLegacyBorderColor != null)
    result.legacyLegacyBorderColor = legacyLegacyBorderColor;
  if (legacyBorderWidth != null) result.legacyBorderWidth = legacyBorderWidth;
  if (legacyFillColor != null) result.legacyFillColor = legacyFillColor;
  if (legacyBorderColor != null) result.legacyBorderColor = legacyBorderColor;
  if (iconPadding != null) result.iconPadding = iconPadding;
  if (legacyShowLoadingIndicator != null)
    result.legacyShowLoadingIndicator = legacyShowLoadingIndicator;
  if (borderRadius != null) result.borderRadius = borderRadius;
  if (innerPadding != null) result.innerPadding = innerPadding;
  if (disabled != null) result.disabled = disabled;
  if (legacyDisabledColor != null)
    result.legacyDisabledColor = legacyDisabledColor;
  if (hasHoverStyle != null) result.hasHoverStyle = hasHoverStyle;
  if (legacyHoverColor != null) result.legacyHoverColor = legacyHoverColor;
  if (legacyHoverBorderColor != null)
    result.legacyHoverBorderColor = legacyHoverBorderColor;
  if (legacyHoverTextColor != null)
    result.legacyHoverTextColor = legacyHoverTextColor;
  if (legacyHoverElevation != null)
    result.legacyHoverElevation = legacyHoverElevation;
  if (legacyDisabledTextColor != null)
    result.legacyDisabledTextColor = legacyDisabledTextColor;
  if (dimensions != null) result.dimensions = dimensions;
  if (elevationValue != null) result.elevationValue = elevationValue;
  if (fillColorValue != null) result.fillColorValue = fillColorValue;
  if (borderColorValue != null) result.borderColorValue = borderColorValue;
  if (borderWidthValue != null) result.borderWidthValue = borderWidthValue;
  if (disabledColorValue != null)
    result.disabledColorValue = disabledColorValue;
  if (disabledTextColorValue != null)
    result.disabledTextColorValue = disabledTextColorValue;
  if (hoverColorValue != null) result.hoverColorValue = hoverColorValue;
  if (hoverBorderColorValue != null)
    result.hoverBorderColorValue = hoverBorderColorValue;
  if (hoverTextColorValue != null)
    result.hoverTextColorValue = hoverTextColorValue;
  if (hoverElevationValue != null)
    result.hoverElevationValue = hoverElevationValue;
  if (showLoadingIndicatorValue != null)
    result.showLoadingIndicatorValue = showLoadingIndicatorValue;
  if (iconValue != null) result.iconValue = iconValue;
  if (iconPosition != null) result.iconPosition = iconPosition;
  return result;
}