copyWith method

  1. @useResult
FButtonIconContentStyle copyWith({
  1. FWidgetStateMap<IconThemeData>? iconStyle,
  2. EdgeInsetsGeometry? padding,
})

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

iconStyle

The icon's style.

Supported states:

padding

The padding. Defaults to EdgeInsets.all(7.5).

Implementation

@useResult
FButtonIconContentStyle copyWith({FWidgetStateMap<IconThemeData>? iconStyle, EdgeInsetsGeometry? padding}) =>
    FButtonIconContentStyle(iconStyle: iconStyle ?? this.iconStyle, padding: padding ?? this.padding);