copyWith method Null safety
- {Color? backgroundColor,
- Color? hourMinuteTextColor,
- Color? hourMinuteColor,
- Color? dayPeriodTextColor,
- Color? dayPeriodColor,
- Color? dialHandColor,
- Color? dialBackgroundColor,
- Color? dialTextColor,
- Color? entryModeIconColor,
- TextStyle? hourMinuteTextStyle,
- TextStyle? dayPeriodTextStyle,
- TextStyle? helpTextStyle,
- ShapeBorder? shape,
- ShapeBorder? hourMinuteShape,
- OutlinedBorder? dayPeriodShape,
- BorderSide? dayPeriodBorderSide,
- InputDecorationTheme? inputDecorationTheme}
Creates a copy of this object with the given fields replaced with the new values.
Implementation
TimePickerThemeData copyWith({
Color? backgroundColor,
Color? hourMinuteTextColor,
Color? hourMinuteColor,
Color? dayPeriodTextColor,
Color? dayPeriodColor,
Color? dialHandColor,
Color? dialBackgroundColor,
Color? dialTextColor,
Color? entryModeIconColor,
TextStyle? hourMinuteTextStyle,
TextStyle? dayPeriodTextStyle,
TextStyle? helpTextStyle,
ShapeBorder? shape,
ShapeBorder? hourMinuteShape,
OutlinedBorder? dayPeriodShape,
BorderSide? dayPeriodBorderSide,
InputDecorationTheme? inputDecorationTheme,
}) {
return TimePickerThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
hourMinuteTextColor: hourMinuteTextColor ?? this.hourMinuteTextColor,
hourMinuteColor: hourMinuteColor ?? this.hourMinuteColor,
dayPeriodTextColor: dayPeriodTextColor ?? this.dayPeriodTextColor,
dayPeriodColor: dayPeriodColor ?? this.dayPeriodColor,
dialHandColor: dialHandColor ?? this.dialHandColor,
dialBackgroundColor: dialBackgroundColor ?? this.dialBackgroundColor,
dialTextColor: dialTextColor ?? this.dialTextColor,
entryModeIconColor: entryModeIconColor ?? this.entryModeIconColor,
hourMinuteTextStyle: hourMinuteTextStyle ?? this.hourMinuteTextStyle,
dayPeriodTextStyle: dayPeriodTextStyle ?? this.dayPeriodTextStyle,
helpTextStyle: helpTextStyle ?? this.helpTextStyle,
shape: shape ?? this.shape,
hourMinuteShape: hourMinuteShape ?? this.hourMinuteShape,
dayPeriodShape: dayPeriodShape ?? this.dayPeriodShape,
dayPeriodBorderSide: dayPeriodBorderSide ?? this.dayPeriodBorderSide,
inputDecorationTheme: inputDecorationTheme ?? this.inputDecorationTheme,
);
}