copyWith method
- @useResult
- FWidgetStateMap<
TextStyle> ? textStyle, - FWidgetStateMap<
IconThemeData> ? iconStyle, - EdgeInsetsGeometry? padding,
- double? spacing,
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.
textStyle
The TextStyle.
Supported states:
iconStyle
The icon's style.
Supported states:
padding
The padding. Defaults to EdgeInsets.symmetric(horizontal: 16, vertical: 12.5)
.
spacing
The spacing between prefix, child, and suffix. Defaults to 10.
Implementation
@useResult
FButtonContentStyle copyWith({
FWidgetStateMap<TextStyle>? textStyle,
FWidgetStateMap<IconThemeData>? iconStyle,
EdgeInsetsGeometry? padding,
double? spacing,
}) => FButtonContentStyle(
textStyle: textStyle ?? this.textStyle,
iconStyle: iconStyle ?? this.iconStyle,
padding: padding ?? this.padding,
spacing: spacing ?? this.spacing,
);