copyWith method

  1. @useResult
FButtonContentStyle copyWith({
  1. FWidgetStateMap<TextStyle>? textStyle,
  2. FWidgetStateMap<IconThemeData>? iconStyle,
  3. EdgeInsetsGeometry? padding,
})
inherited

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

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

Implementation

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