copyWith method
- @useResult
- BoxDecorationDelta? decoration,
- EdgeInsetsGeometry? padding,
- FVariantsDelta<
FTabVariantConstraint, FTabVariant, TextStyle, TextStyleDelta> ? labelTextStyle, - BoxDecorationDelta? indicatorDecoration,
- FTabBarIndicatorSize? indicatorSize,
- double? height,
- double? spacing,
- FFocusedOutlineStyleDelta? focusedOutlineStyle,
Returns a copy of this FTabsStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FTabsStyle.decoration - The decoration.
- FTabsStyle.padding - The padding.
- FTabsStyle.labelTextStyle - The label's TextStyle.
- 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({
BoxDecorationDelta? decoration,
EdgeInsetsGeometry? padding,
FVariantsDelta<FTabVariantConstraint, FTabVariant, TextStyle, TextStyleDelta>? labelTextStyle,
BoxDecorationDelta? indicatorDecoration,
FTabBarIndicatorSize? indicatorSize,
double? height,
double? spacing,
FFocusedOutlineStyleDelta? focusedOutlineStyle,
}) => .new(
decoration: decoration?.call(this.decoration) ?? this.decoration,
padding: padding ?? this.padding,
labelTextStyle: labelTextStyle?.call(this.labelTextStyle) ?? this.labelTextStyle,
indicatorDecoration: indicatorDecoration?.call(this.indicatorDecoration) ?? this.indicatorDecoration,
indicatorSize: indicatorSize ?? this.indicatorSize,
height: height ?? this.height,
spacing: spacing ?? this.spacing,
focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
);