copyWith method

TabBarTheme copyWith ({Decoration indicator, TabBarIndicatorSize indicatorSize, Color labelColor, TextStyle labelStyle, Color unselectedLabelColor, TextStyle unselectedLabelStyle })

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

TabBarTheme copyWith({
  Decoration indicator,
  TabBarIndicatorSize indicatorSize,
  Color labelColor,
  TextStyle labelStyle,
  Color unselectedLabelColor,
  TextStyle unselectedLabelStyle,
}) {
  return TabBarTheme(
    indicator: indicator ?? this.indicator,
    indicatorSize: indicatorSize ?? this.indicatorSize,
    labelColor: labelColor ?? this.labelColor,
    labelStyle: labelStyle ?? this.labelStyle,
    unselectedLabelColor: unselectedLabelColor ?? this.unselectedLabelColor,
    unselectedLabelStyle: unselectedLabelStyle ?? this.unselectedLabelStyle,
  );
}