copyWith method
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,
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,
);
}