copyWith method

  1. @useResult
FTabsStyle copyWith({
  1. BoxDecoration? decoration,
  2. EdgeInsetsGeometry? padding,
  3. TextStyle? selectedLabelTextStyle,
  4. TextStyle? unselectedLabelTextStyle,
  5. BoxDecoration? indicatorDecoration,
  6. FTabBarIndicatorSize? indicatorSize,
  7. double? height,
  8. double? spacing,
  9. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle
    )?,
})

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

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

decoration

The decoration.

padding

The padding.

selectedLabelTextStyle

The TextStyle of the label.

unselectedLabelTextStyle

The TextStyle of the label.

indicatorDecoration

The indicator.

indicatorSize

The indicator size.

height

The height.

spacing

The spacing between the tab bar and the views.

focusedOutlineStyle

The focused outline style.

Implementation

@useResult
FTabsStyle copyWith({
  BoxDecoration? decoration,
  EdgeInsetsGeometry? padding,
  TextStyle? selectedLabelTextStyle,
  TextStyle? unselectedLabelTextStyle,
  BoxDecoration? indicatorDecoration,
  FTabBarIndicatorSize? indicatorSize,
  double? height,
  double? spacing,
  FFocusedOutlineStyle Function(FFocusedOutlineStyle)? focusedOutlineStyle,
}) => FTabsStyle(
  decoration: decoration ?? this.decoration,
  padding: padding ?? this.padding,
  selectedLabelTextStyle: selectedLabelTextStyle ?? this.selectedLabelTextStyle,
  unselectedLabelTextStyle: unselectedLabelTextStyle ?? this.unselectedLabelTextStyle,
  indicatorDecoration: indicatorDecoration ?? this.indicatorDecoration,
  indicatorSize: indicatorSize ?? this.indicatorSize,
  height: height ?? this.height,
  spacing: spacing ?? this.spacing,
  focusedOutlineStyle: focusedOutlineStyle != null
      ? focusedOutlineStyle(this.focusedOutlineStyle)
      : this.focusedOutlineStyle,
);