copyWith method

  1. @override
ThemeExtension<TabShellAppBarStyle> copyWith({
  1. Color? lineIndicatorColor,
  2. Color? selectedLabelColor,
  3. Color? unselectedLabelColor,
  4. Color? outlinedTabColor,
  5. TextStyle? labelStyle,
  6. TextStyle? outlinedLabelStyle,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<TabShellAppBarStyle> copyWith({
  Color? lineIndicatorColor,
  Color? selectedLabelColor,
  Color? unselectedLabelColor,
  Color? outlinedTabColor,
  TextStyle? labelStyle,
  TextStyle? outlinedLabelStyle,
}) {
  return TabShellAppBarStyle(
    lineIndicatorColor: lineIndicatorColor ?? this.lineIndicatorColor,
    selectedLabelColor: selectedLabelColor ?? this.selectedLabelColor,
    unselectedLabelColor: unselectedLabelColor ?? this.unselectedLabelColor,
    outlinedTabColor: outlinedTabColor ?? this.outlinedTabColor,
    labelStyle: labelStyle ?? this.labelStyle,
    outlinedLabelStyle: outlinedLabelStyle ?? this.outlinedLabelStyle,
  );
}