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