copyWith method
- @useResult
- EdgeInsetsGeometry? padding,
- FWidgetStateMap<
IconThemeData> ? prefixIconStyle, - double? prefixIconSpacing,
- FWidgetStateMap<
TextStyle> ? childTextStyle,
Returns a copy of this FRawItemContentStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FRawItemContentStyle.padding - The content's padding.
- FRawItemContentStyle.prefixIconStyle - The prefix icon style.
- FRawItemContentStyle.prefixIconSpacing - The horizontal spacing between the prefix icon and child.
- FRawItemContentStyle.childTextStyle - The child's text style.
Implementation
@useResult
FRawItemContentStyle copyWith({
EdgeInsetsGeometry? padding,
FWidgetStateMap<IconThemeData>? prefixIconStyle,
double? prefixIconSpacing,
FWidgetStateMap<TextStyle>? childTextStyle,
}) => FRawItemContentStyle(
padding: padding ?? this.padding,
prefixIconStyle: prefixIconStyle ?? this.prefixIconStyle,
prefixIconSpacing: prefixIconSpacing ?? this.prefixIconSpacing,
childTextStyle: childTextStyle ?? this.childTextStyle,
);