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,
})
inherited

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.

Implementation

@useResult
FTabsStyle copyWith({
  BoxDecoration? decoration,
  EdgeInsetsGeometry? padding,
  TextStyle? selectedLabelTextStyle,
  TextStyle? unselectedLabelTextStyle,
  BoxDecoration? indicatorDecoration,
  FTabBarIndicatorSize? indicatorSize,
  double? height,
  double? spacing,
  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 ?? this.focusedOutlineStyle,
);