copyWith method
ThemeExtension<TabShellAppBarStyle>
copyWith({
- Color? lineIndicatorColor,
- Color? selectedLabelColor,
- Color? unselectedLabelColor,
- Color? outlinedTabColor,
- TextStyle? labelStyle,
- 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,
);
}