copyWith method

  1. @useResult
FBreadcrumbStyle copyWith({
  1. FWidgetStateMap<TextStyle>? textStyle,
  2. IconThemeData? iconStyle,
  3. EdgeInsetsGeometry? padding,
  4. FTappableStyle tappableStyle(
    1. FTappableStyle
    )?,
  5. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle
    )?,
})

Returns a copy of this FBreadcrumbStyle 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 text style.

iconStyle

The divider icon style.

padding

The padding. Defaults to EdgeInsets.symmetric(horizontal: 5).

tappableStyle

The tappable's style.

focusedOutlineStyle

The focused outline style.

Implementation

@useResult
FBreadcrumbStyle copyWith({
  FWidgetStateMap<TextStyle>? textStyle,
  IconThemeData? iconStyle,
  EdgeInsetsGeometry? padding,
  FTappableStyle Function(FTappableStyle)? tappableStyle,
  FFocusedOutlineStyle Function(FFocusedOutlineStyle)? focusedOutlineStyle,
}) => FBreadcrumbStyle(
  textStyle: textStyle ?? this.textStyle,
  iconStyle: iconStyle ?? this.iconStyle,
  padding: padding ?? this.padding,
  tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
  focusedOutlineStyle: focusedOutlineStyle != null
      ? focusedOutlineStyle(this.focusedOutlineStyle)
      : this.focusedOutlineStyle,
);