copyWith method
- @useResult
- BoxDecoration? decoration,
- EdgeInsetsGeometry? padding,
- TextStyle? selectedLabelTextStyle,
- TextStyle? unselectedLabelTextStyle,
- BoxDecoration? indicatorDecoration,
- FTabBarIndicatorSize? indicatorSize,
- double? height,
- double? spacing,
- FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
Returns a copy of this FTabsStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FTabsStyle.decoration - The decoration.
- FTabsStyle.padding - The padding.
- FTabsStyle.selectedLabelTextStyle - The TextStyle of the label.
- FTabsStyle.unselectedLabelTextStyle - The TextStyle of the label.
- FTabsStyle.indicatorDecoration - The indicator.
- FTabsStyle.indicatorSize - The indicator size.
- FTabsStyle.height - The height.
- FTabsStyle.spacing - The spacing between the tab bar and the views.
- FTabsStyle.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 style)? 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,
);