copyWith method

  1. @useResult
FRawItemContentStyle copyWith({
  1. EdgeInsetsGeometry? padding,
  2. FWidgetStateMap<IconThemeData>? prefixIconStyle,
  3. double? prefixIconSpacing,
  4. FWidgetStateMap<TextStyle>? childTextStyle,
})

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

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

padding

The content's padding. Defaults to EdgeInsetsDirectional.only(15, 13, 10, 13).

prefixIconStyle

The prefix icon style.

prefixIconSpacing

The horizontal spacing between the prefix icon and child. Defaults to 10.

Contract

Throws AssertionError if prefixIconSpacing is negative.

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,
);