FFIconButton constructor
FFIconButton({
- FFIcon? legacyIcon,
- @Deprecated('This field is deprecated.') double? legacyIconSize,
- @Deprecated('This field is deprecated.') double? elevation,
- FFColor? legacyFillColor,
- @Deprecated('This field is deprecated.') double? legacyButtonSize,
- double? legacyBorderRadius,
- FFColor? legacyBorderColor,
- double? legacyBorderWidth,
- bool? legacyShowLoadingIndicator,
- FFDisable? disabled,
- FFColor? legacyDisabledColor,
- FFColor? legacyDisabledIconColor,
- bool? hasHoverStyle,
- FFColor? legacyHoverColor,
- FFColor? legacyHoverIconColor,
- FFDim? buttonSize,
- FFColorValue? fillColorValue,
- FFDoubleValue? borderRadiusValue,
- FFColorValue? borderColorValue,
- FFDoubleValue? borderWidthValue,
- FFBooleanValue? showLoadingIndicatorValue,
- FFColorValue? disabledColorValue,
- FFColorValue? disabledIconColorValue,
- FFColorValue? hoverColorValue,
- FFColorValue? hoverIconColorValue,
- FFIconValue? iconValue,
- FFColorValue? hoverBorderColorValue,
Implementation
factory FFIconButton({
FFIcon? legacyIcon,
@$core.Deprecated('This field is deprecated.') $core.double? legacyIconSize,
@$core.Deprecated('This field is deprecated.') $core.double? elevation,
FFColor? legacyFillColor,
@$core.Deprecated('This field is deprecated.')
$core.double? legacyButtonSize,
$core.double? legacyBorderRadius,
FFColor? legacyBorderColor,
$core.double? legacyBorderWidth,
$core.bool? legacyShowLoadingIndicator,
FFDisable? disabled,
FFColor? legacyDisabledColor,
FFColor? legacyDisabledIconColor,
$core.bool? hasHoverStyle,
FFColor? legacyHoverColor,
FFColor? legacyHoverIconColor,
FFDim? buttonSize,
FFColorValue? fillColorValue,
FFDoubleValue? borderRadiusValue,
FFColorValue? borderColorValue,
FFDoubleValue? borderWidthValue,
FFBooleanValue? showLoadingIndicatorValue,
FFColorValue? disabledColorValue,
FFColorValue? disabledIconColorValue,
FFColorValue? hoverColorValue,
FFColorValue? hoverIconColorValue,
FFIconValue? iconValue,
FFColorValue? hoverBorderColorValue,
}) {
final result = create();
if (legacyIcon != null) result.legacyIcon = legacyIcon;
if (legacyIconSize != null) result.legacyIconSize = legacyIconSize;
if (elevation != null) result.elevation = elevation;
if (legacyFillColor != null) result.legacyFillColor = legacyFillColor;
if (legacyButtonSize != null) result.legacyButtonSize = legacyButtonSize;
if (legacyBorderRadius != null)
result.legacyBorderRadius = legacyBorderRadius;
if (legacyBorderColor != null) result.legacyBorderColor = legacyBorderColor;
if (legacyBorderWidth != null) result.legacyBorderWidth = legacyBorderWidth;
if (legacyShowLoadingIndicator != null)
result.legacyShowLoadingIndicator = legacyShowLoadingIndicator;
if (disabled != null) result.disabled = disabled;
if (legacyDisabledColor != null)
result.legacyDisabledColor = legacyDisabledColor;
if (legacyDisabledIconColor != null)
result.legacyDisabledIconColor = legacyDisabledIconColor;
if (hasHoverStyle != null) result.hasHoverStyle = hasHoverStyle;
if (legacyHoverColor != null) result.legacyHoverColor = legacyHoverColor;
if (legacyHoverIconColor != null)
result.legacyHoverIconColor = legacyHoverIconColor;
if (buttonSize != null) result.buttonSize = buttonSize;
if (fillColorValue != null) result.fillColorValue = fillColorValue;
if (borderRadiusValue != null) result.borderRadiusValue = borderRadiusValue;
if (borderColorValue != null) result.borderColorValue = borderColorValue;
if (borderWidthValue != null) result.borderWidthValue = borderWidthValue;
if (showLoadingIndicatorValue != null)
result.showLoadingIndicatorValue = showLoadingIndicatorValue;
if (disabledColorValue != null)
result.disabledColorValue = disabledColorValue;
if (disabledIconColorValue != null)
result.disabledIconColorValue = disabledIconColorValue;
if (hoverColorValue != null) result.hoverColorValue = hoverColorValue;
if (hoverIconColorValue != null)
result.hoverIconColorValue = hoverIconColorValue;
if (iconValue != null) result.iconValue = iconValue;
if (hoverBorderColorValue != null)
result.hoverBorderColorValue = hoverBorderColorValue;
return result;
}