copyWith method

  1. @useResult
FButtonContentStyle copyWith({
  1. TextStyle? enabledTextStyle,
  2. TextStyle? disabledTextStyle,
  3. EdgeInsets? padding,
  4. Color? enabledIconColor,
  5. Color? disabledIconColor,
  6. double? iconSize,
})

Returns a copy of this FButtonContentStyle with the given properties replaced.

Implementation

@useResult
FButtonContentStyle copyWith({
  TextStyle? enabledTextStyle,
  TextStyle? disabledTextStyle,
  EdgeInsets? padding,
  Color? enabledIconColor,
  Color? disabledIconColor,
  double? iconSize,
}) =>
    FButtonContentStyle(
      enabledTextStyle: enabledTextStyle ?? this.enabledTextStyle,
      disabledTextStyle: disabledTextStyle ?? this.disabledTextStyle,
      padding: padding ?? this.padding,
      enabledIconColor: enabledIconColor ?? this.enabledIconColor,
      disabledIconColor: disabledIconColor ?? this.disabledIconColor,
      iconSize: iconSize ?? this.iconSize,
    );