FFButton constructor
FFButton({
- FFText? text,
- FFIcon? legacyIcon,
- double? legacyElevation,
- @Deprecated('This field is deprecated.') Int64? legacyLegacyFillColor,
- @Deprecated('This field is deprecated.') double? legacyWidth,
- @Deprecated('This field is deprecated.') double? legacyHeight,
- @Deprecated('This field is deprecated.') double? borderRadiusDeprecated,
- @Deprecated('This field is deprecated.') Int64? legacyLegacyBorderColor,
- double? legacyBorderWidth,
- FFColor? legacyFillColor,
- FFColor? legacyBorderColor,
- FFPadding? iconPadding,
- bool? legacyShowLoadingIndicator,
- FFBorderRadius? borderRadius,
- FFPadding? innerPadding,
- FFDisable? disabled,
- FFColor? legacyDisabledColor,
- bool? hasHoverStyle,
- FFColor? legacyHoverColor,
- FFColor? legacyHoverBorderColor,
- FFColor? legacyHoverTextColor,
- 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,
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;
}