copyWith method

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

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

See customizing widget styles.

Parameters

Implementation

@useResult
FTabsStyle copyWith({
  DecorationDelta? decoration,
  FVariantsDelta<FTabVariantConstraint, FTabVariant, TextStyle, TextStyleDelta>? labelTextStyle,
  DecorationDelta? indicatorDecoration,
  FFocusedOutlineStyleDelta? focusedOutlineStyle,
  EdgeInsetsGeometryDelta? padding,
  FTabBarIndicatorSize? indicatorSize,
  double? minHeight,
  double? spacing,
}) => .new(
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  labelTextStyle: labelTextStyle?.call(this.labelTextStyle) ?? this.labelTextStyle,
  indicatorDecoration: indicatorDecoration?.call(this.indicatorDecoration) ?? this.indicatorDecoration,
  focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
  padding: padding?.call(this.padding) ?? this.padding,
  indicatorSize: indicatorSize ?? this.indicatorSize,
  minHeight: minHeight ?? this.minHeight,
  spacing: spacing ?? this.spacing,
);