copyWith method
- Color? backgroundColor,
- ButtonStyle? cancelButtonStyle,
- ButtonStyle? confirmButtonStyle,
- ButtonStyle? dayPeriodButtonStyle,
- BorderSide? dayPeriodBorderSide,
- Color? dayPeriodColor,
- OutlinedBorder? dayPeriodShape,
- Color? dayPeriodTextColor,
- TextStyle? dayPeriodTextStyle,
- Color? dialBackgroundColor,
- Color? dialHandColor,
- Color? dialTextColor,
- TextStyle? dialTextStyle,
- double? elevation,
- Color? entryModeIconColor,
- TextStyle? helpTextStyle,
- Color? hourMinuteColor,
- ShapeBorder? hourMinuteShape,
- Color? hourMinuteTextColor,
- TextStyle? hourMinuteTextStyle,
- InputDecorationTheme? inputDecorationTheme,
- EdgeInsetsGeometry? padding,
- ShapeBorder? shape,
- MaterialStateProperty<
Color?> ? timeSelectorSeparatorColor, - MaterialStateProperty<
TextStyle?> ? timeSelectorSeparatorTextStyle,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
TimePickerThemeData copyWith({
Color? backgroundColor,
ButtonStyle? cancelButtonStyle,
ButtonStyle? confirmButtonStyle,
ButtonStyle? dayPeriodButtonStyle,
BorderSide? dayPeriodBorderSide,
Color? dayPeriodColor,
OutlinedBorder? dayPeriodShape,
Color? dayPeriodTextColor,
TextStyle? dayPeriodTextStyle,
Color? dialBackgroundColor,
Color? dialHandColor,
Color? dialTextColor,
TextStyle? dialTextStyle,
double? elevation,
Color? entryModeIconColor,
TextStyle? helpTextStyle,
Color? hourMinuteColor,
ShapeBorder? hourMinuteShape,
Color? hourMinuteTextColor,
TextStyle? hourMinuteTextStyle,
InputDecorationTheme? inputDecorationTheme,
EdgeInsetsGeometry? padding,
ShapeBorder? shape,
MaterialStateProperty<Color?>? timeSelectorSeparatorColor,
MaterialStateProperty<TextStyle?>? timeSelectorSeparatorTextStyle,
}) {
return TimePickerThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
cancelButtonStyle: cancelButtonStyle ?? this.cancelButtonStyle,
confirmButtonStyle: confirmButtonStyle ?? this.confirmButtonStyle,
dayPeriodBorderSide: dayPeriodBorderSide ?? this.dayPeriodBorderSide,
dayPeriodColor: dayPeriodColor ?? this.dayPeriodColor,
dayPeriodShape: dayPeriodShape ?? this.dayPeriodShape,
dayPeriodTextColor: dayPeriodTextColor ?? this.dayPeriodTextColor,
dayPeriodTextStyle: dayPeriodTextStyle ?? this.dayPeriodTextStyle,
dialBackgroundColor: dialBackgroundColor ?? this.dialBackgroundColor,
dialHandColor: dialHandColor ?? this.dialHandColor,
dialTextColor: dialTextColor ?? this.dialTextColor,
dialTextStyle: dialTextStyle ?? this.dialTextStyle,
elevation: elevation ?? this.elevation,
entryModeIconColor: entryModeIconColor ?? this.entryModeIconColor,
helpTextStyle: helpTextStyle ?? this.helpTextStyle,
hourMinuteColor: hourMinuteColor ?? this.hourMinuteColor,
hourMinuteShape: hourMinuteShape ?? this.hourMinuteShape,
hourMinuteTextColor: hourMinuteTextColor ?? this.hourMinuteTextColor,
hourMinuteTextStyle: hourMinuteTextStyle ?? this.hourMinuteTextStyle,
inputDecorationTheme: inputDecorationTheme ?? this.inputDecorationTheme,
padding: padding ?? this.padding,
shape: shape ?? this.shape,
timeSelectorSeparatorColor: timeSelectorSeparatorColor ?? this.timeSelectorSeparatorColor,
timeSelectorSeparatorTextStyle: timeSelectorSeparatorTextStyle ?? this.timeSelectorSeparatorTextStyle,
);
}