copyWith method

  1. @useResult
FTabsStyle copyWith({
  1. BoxDecorationDelta? decoration,
  2. EdgeInsetsGeometry? padding,
  3. FVariantsDelta<FTabVariantConstraint, FTabVariant, TextStyle, TextStyleDelta>? labelTextStyle,
  4. BoxDecorationDelta? indicatorDecoration,
  5. FTabBarIndicatorSize? indicatorSize,
  6. double? height,
  7. double? spacing,
  8. FFocusedOutlineStyleDelta? focusedOutlineStyle,
})

Returns a copy of this FTabsStyle with the given properties replaced.

See customizing widget styles.

Parameters

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,
);