FFIconButton constructor

FFIconButton({
  1. FFIcon? legacyIcon,
  2. @Deprecated('This field is deprecated.') double? legacyIconSize,
  3. @Deprecated('This field is deprecated.') double? elevation,
  4. FFColor? legacyFillColor,
  5. @Deprecated('This field is deprecated.') double? legacyButtonSize,
  6. double? legacyBorderRadius,
  7. FFColor? legacyBorderColor,
  8. double? legacyBorderWidth,
  9. bool? legacyShowLoadingIndicator,
  10. FFDisable? disabled,
  11. FFColor? legacyDisabledColor,
  12. FFColor? legacyDisabledIconColor,
  13. bool? hasHoverStyle,
  14. FFColor? legacyHoverColor,
  15. FFColor? legacyHoverIconColor,
  16. FFDim? buttonSize,
  17. FFColorValue? fillColorValue,
  18. FFDoubleValue? borderRadiusValue,
  19. FFColorValue? borderColorValue,
  20. FFDoubleValue? borderWidthValue,
  21. FFBooleanValue? showLoadingIndicatorValue,
  22. FFColorValue? disabledColorValue,
  23. FFColorValue? disabledIconColorValue,
  24. FFColorValue? hoverColorValue,
  25. FFColorValue? hoverIconColorValue,
  26. FFIconValue? iconValue,
  27. 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;
}