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