copyWith method
ZeroDatePickerStyle
copyWith({
- Color? headerBackgroundColor,
- Color? pickerBackgroundColor,
- Color? entryModeIconColor,
- TextStyle? dateTextStyle,
- TextStyle? helpTextStyle,
- ShapeBorder? shape,
- ZeroTextfieldStyle? textfieldStyle,
- double? elevation,
- EdgeInsets? insetPadding,
- ZeroCalendarPickerStyle? calendarStyle,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
ZeroDatePickerStyle copyWith({
Color? headerBackgroundColor,
Color? pickerBackgroundColor,
Color? entryModeIconColor,
TextStyle? dateTextStyle,
TextStyle? helpTextStyle,
ShapeBorder? shape,
ZeroTextfieldStyle? textfieldStyle,
double? elevation,
EdgeInsets? insetPadding,
ZeroCalendarPickerStyle? calendarStyle,
}) {
return ZeroDatePickerStyle(
headerBackgroundColor:
headerBackgroundColor ?? this.headerBackgroundColor,
pickerBackgroundColor:
pickerBackgroundColor ?? this.pickerBackgroundColor,
entryModeIconColor: entryModeIconColor ?? this.entryModeIconColor,
helpTextStyle: helpTextStyle ?? this.helpTextStyle,
dateTextStyle: dateTextStyle ?? this.dateTextStyle,
shape: shape ?? this.shape,
textfieldStyle: textfieldStyle ?? this.textfieldStyle,
elevation: elevation ?? this.elevation,
insetPadding: insetPadding ?? this.insetPadding,
calendarStyle: calendarStyle ?? this.calendarStyle);
}