copyWith method

TimePickerThemeData copyWith(
  1. {Color? backgroundColor,
  2. ButtonStyle? cancelButtonStyle,
  3. ButtonStyle? confirmButtonStyle,
  4. ButtonStyle? dayPeriodButtonStyle,
  5. BorderSide? dayPeriodBorderSide,
  6. Color? dayPeriodColor,
  7. OutlinedBorder? dayPeriodShape,
  8. Color? dayPeriodTextColor,
  9. TextStyle? dayPeriodTextStyle,
  10. Color? dialBackgroundColor,
  11. Color? dialHandColor,
  12. Color? dialTextColor,
  13. TextStyle? dialTextStyle,
  14. double? elevation,
  15. Color? entryModeIconColor,
  16. TextStyle? helpTextStyle,
  17. Color? hourMinuteColor,
  18. ShapeBorder? hourMinuteShape,
  19. Color? hourMinuteTextColor,
  20. TextStyle? hourMinuteTextStyle,
  21. InputDecorationTheme? inputDecorationTheme,
  22. EdgeInsetsGeometry? padding,
  23. ShapeBorder? shape}
)

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