copyWith method
- @useResult
- FWidgetStateMap<
TextStyle> ? textStyle, - FWidgetStateMap<
IconThemeData> ? iconStyle, - FWidgetStateMap<
FCircularProgressStyle> ? circularProgressStyle, - EdgeInsetsGeometry? padding,
- double? spacing,
Returns a copy of this FButtonContentStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FButtonContentStyle.textStyle - The TextStyle.
- FButtonContentStyle.iconStyle - The icon's style.
- FButtonContentStyle.circularProgressStyle - The circular progress's style.
- FButtonContentStyle.padding - The padding.
- FButtonContentStyle.spacing - The spacing between prefix, child, and suffix.
Implementation
@useResult
FButtonContentStyle copyWith({
FWidgetStateMap<TextStyle>? textStyle,
FWidgetStateMap<IconThemeData>? iconStyle,
FWidgetStateMap<FCircularProgressStyle>? circularProgressStyle,
EdgeInsetsGeometry? padding,
double? spacing,
}) => FButtonContentStyle(
textStyle: textStyle ?? this.textStyle,
iconStyle: iconStyle ?? this.iconStyle,
circularProgressStyle: circularProgressStyle ?? this.circularProgressStyle,
padding: padding ?? this.padding,
spacing: spacing ?? this.spacing,
);