copyWith method

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

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,
  Color unselectedLabelColor,
}) {
  return TabBarTheme(
      indicator: indicator ?? this.indicator,
      indicatorSize: indicatorSize ?? this.indicatorSize,
      labelColor: labelColor ?? this.labelColor,
      unselectedLabelColor: unselectedLabelColor ?? this.unselectedLabelColor
  );
}