copyWith method
PickerThemeData
copyWith({
- Color? backgroundColor,
- Color? bottomSheetBackgroundColor,
- Color? tabBorderColor,
- Color? tabEnableColor,
- Color? tabDisableColor,
- TextStyle? doneTextStyle,
- TextStyle? cancelTextStyle,
- double? borderRadius,
- ButtonStyle? doneButtonStyle,
- ButtonStyle? cancelButtonStyle,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
PickerThemeData copyWith({
Color? backgroundColor,
Color? bottomSheetBackgroundColor,
Color? tabBorderColor,
Color? tabEnableColor,
Color? tabDisableColor,
TextStyle? doneTextStyle,
TextStyle? cancelTextStyle,
double? borderRadius,
ButtonStyle? doneButtonStyle,
ButtonStyle? cancelButtonStyle,
}) {
return PickerThemeData(
bottomSheetBackgroundColor:
backgroundColor ?? this.bottomSheetBackgroundColor,
bottomSheetIndicatorColor:
bottomSheetBackgroundColor ?? bottomSheetIndicatorColor,
tabEnableColor: tabEnableColor ?? this.tabEnableColor,
tabDisableColor: tabDisableColor ?? this.tabDisableColor,
doneTextStyle: doneTextStyle ?? this.doneTextStyle,
cancelTextStyle: cancelTextStyle ?? this.cancelTextStyle,
borderRadius: borderRadius ?? this.borderRadius,
cancelButtonStyle: cancelButtonStyle ?? this.cancelButtonStyle,
doneButtonStyle: doneButtonStyle ?? this.doneButtonStyle,
tabBorderColor: tabBorderColor ?? this.tabBorderColor,
);
}