copyWith method

ZeroTimePickerStyle copyWith({
  1. Color? backgroundColor,
  2. Color? dayPeriodTextColor,
  3. Color? dayPeriodColor,
  4. Color? dialHandColor,
  5. Color? dialBackgroundColor,
  6. Color? dialTextColor,
  7. Color? entryModeIconColor,
  8. TextStyle? dayPeriodTextStyle,
  9. TextStyle? helpTextStyle,
  10. ShapeBorder? shape,
  11. HourMinuteControlStyle? hourMinute,
  12. OutlinedBorder? dayPeriodShape,
  13. BorderSide? dayPeriodBorderSide,
  14. ZeroTextfieldStyle? textfieldStyle,
})

Creates a copy of this object with the given fields replaced with the new values.

Implementation

ZeroTimePickerStyle copyWith({
  Color? backgroundColor,
  Color? dayPeriodTextColor,
  Color? dayPeriodColor,
  Color? dialHandColor,
  Color? dialBackgroundColor,
  Color? dialTextColor,
  Color? entryModeIconColor,
  TextStyle? dayPeriodTextStyle,
  TextStyle? helpTextStyle,
  ShapeBorder? shape,
  HourMinuteControlStyle? hourMinute,
  OutlinedBorder? dayPeriodShape,
  BorderSide? dayPeriodBorderSide,
  ZeroTextfieldStyle? textfieldStyle,
}) {
  return ZeroTimePickerStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    hourMinute: hourMinute ?? this.hourMinute,
    dayPeriodTextColor: dayPeriodTextColor ?? this.dayPeriodTextColor,
    dayPeriodColor: dayPeriodColor ?? this.dayPeriodColor,
    dialHandColor: dialHandColor ?? this.dialHandColor,
    dialBackgroundColor: dialBackgroundColor ?? this.dialBackgroundColor,
    dialTextColor: dialTextColor ?? this.dialTextColor,
    entryModeIconColor: entryModeIconColor ?? this.entryModeIconColor,
    dayPeriodTextStyle: dayPeriodTextStyle ?? this.dayPeriodTextStyle,
    helpTextStyle: helpTextStyle ?? this.helpTextStyle,
    shape: shape ?? this.shape,
    dayPeriodShape: dayPeriodShape ?? this.dayPeriodShape,
    dayPeriodBorderSide: dayPeriodBorderSide ?? this.dayPeriodBorderSide,
    textfieldStyle: textfieldStyle ?? this.textfieldStyle,
  );
}