copyWith method

ZeroDatePickerStyle copyWith({
  1. Color? headerBackgroundColor,
  2. Color? pickerBackgroundColor,
  3. Color? entryModeIconColor,
  4. TextStyle? dateTextStyle,
  5. TextStyle? helpTextStyle,
  6. ShapeBorder? shape,
  7. ZeroTextfieldStyle? textfieldStyle,
  8. double? elevation,
  9. EdgeInsets? insetPadding,
  10. 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);
}