copyWith method
UISegmentTabBarThemeData
copyWith({
- Color? backgroundColor,
- Color? indicatorColor,
- Color? selectedForegroundColor,
- Color? unSelectedColor,
- Color? shadowColor,
- TextStyle? selectedTextStyle,
- TextStyle? unSelectedTextStyle,
- EdgeInsets? tabMargin,
- EdgeInsets? contentMargin,
- EdgeInsets? contentPadding,
- EdgeInsets? tabsPadding,
- BorderRadius? borderRadius,
- double? height,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
UISegmentTabBarThemeData copyWith({
Color? backgroundColor,
Color? indicatorColor,
Color? selectedForegroundColor,
Color? unSelectedColor,
Color? shadowColor,
TextStyle? selectedTextStyle,
TextStyle? unSelectedTextStyle,
EdgeInsets? tabMargin,
EdgeInsets? contentMargin,
EdgeInsets? contentPadding,
EdgeInsets? tabsPadding,
BorderRadius? borderRadius,
double? height,
}) {
return UISegmentTabBarThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
indicatorColor: indicatorColor ?? this.indicatorColor,
selectedForegroundColor: selectedForegroundColor ?? this.selectedForegroundColor,
unSelectedColor: unSelectedColor ?? this.unSelectedColor,
shadowColor: shadowColor ?? this.shadowColor,
selectedTextStyle: selectedTextStyle ?? this.selectedTextStyle,
unSelectedTextStyle: unSelectedTextStyle ?? this.unSelectedTextStyle,
tabMargin: tabMargin ?? this.tabMargin,
contentMargin: contentPadding ?? this.contentMargin,
contentPadding: contentPadding ?? this.contentPadding,
tabsPadding: tabsPadding ?? this.tabsPadding,
borderRadius: borderRadius ?? this.borderRadius,
height: height ?? this.height,
);
}