copyWith method

ShadTimePickerTheme copyWith({
  1. Axis? axis,
  2. double? spacing,
  3. double? runSpacing,
  4. bool? jumpToNextFieldWhenFilled,
  5. WrapAlignment? alignment,
  6. WrapAlignment? runAlignment,
  7. WrapCrossAlignment? crossAxisAlignment,
  8. ShadDayPeriod? initialDayPeriod,
  9. double? periodHeight,
  10. double? periodMinWidth,
  11. double? gap,
  12. TextStyle? style,
  13. TextStyle? placeholderStyle,
  14. TextStyle? labelStyle,
  15. double? fieldWidth,
  16. EdgeInsetsGeometry? fieldPadding,
  17. ShadDecoration? fieldDecoration,
  18. ShadDecoration? periodDecoration,
  19. Widget? hourLabel,
  20. Widget? minuteLabel,
  21. Widget? secondLabel,
  22. Widget? periodLabel,
  23. Widget? hourPlaceholder,
  24. Widget? minutePlaceholder,
  25. Widget? secondPlaceholder,
  26. Widget? periodPlaceholder,
})
inherited

Implementation

ShadTimePickerTheme copyWith({
  Axis? axis,
  double? spacing,
  double? runSpacing,
  bool? jumpToNextFieldWhenFilled,
  WrapAlignment? alignment,
  WrapAlignment? runAlignment,
  WrapCrossAlignment? crossAxisAlignment,
  ShadDayPeriod? initialDayPeriod,
  double? periodHeight,
  double? periodMinWidth,
  double? gap,
  TextStyle? style,
  TextStyle? placeholderStyle,
  TextStyle? labelStyle,
  double? fieldWidth,
  EdgeInsetsGeometry? fieldPadding,
  ShadDecoration? fieldDecoration,
  ShadDecoration? periodDecoration,
  Widget? hourLabel,
  Widget? minuteLabel,
  Widget? secondLabel,
  Widget? periodLabel,
  Widget? hourPlaceholder,
  Widget? minutePlaceholder,
  Widget? secondPlaceholder,
  Widget? periodPlaceholder,
}) {
  final _this = (this as ShadTimePickerTheme);

  return ShadTimePickerTheme(
    axis: axis ?? _this.axis,
    spacing: spacing ?? _this.spacing,
    runSpacing: runSpacing ?? _this.runSpacing,
    jumpToNextFieldWhenFilled:
        jumpToNextFieldWhenFilled ?? _this.jumpToNextFieldWhenFilled,
    alignment: alignment ?? _this.alignment,
    runAlignment: runAlignment ?? _this.runAlignment,
    crossAxisAlignment: crossAxisAlignment ?? _this.crossAxisAlignment,
    initialDayPeriod: initialDayPeriod ?? _this.initialDayPeriod,
    periodHeight: periodHeight ?? _this.periodHeight,
    periodMinWidth: periodMinWidth ?? _this.periodMinWidth,
    gap: gap ?? _this.gap,
    style: style ?? _this.style,
    placeholderStyle: placeholderStyle ?? _this.placeholderStyle,
    labelStyle: labelStyle ?? _this.labelStyle,
    fieldWidth: fieldWidth ?? _this.fieldWidth,
    fieldPadding: fieldPadding ?? _this.fieldPadding,
    fieldDecoration: fieldDecoration ?? _this.fieldDecoration,
    periodDecoration: periodDecoration ?? _this.periodDecoration,
    hourLabel: hourLabel ?? _this.hourLabel,
    minuteLabel: minuteLabel ?? _this.minuteLabel,
    secondLabel: secondLabel ?? _this.secondLabel,
    periodLabel: periodLabel ?? _this.periodLabel,
    hourPlaceholder: hourPlaceholder ?? _this.hourPlaceholder,
    minutePlaceholder: minutePlaceholder ?? _this.minutePlaceholder,
    secondPlaceholder: secondPlaceholder ?? _this.secondPlaceholder,
    periodPlaceholder: periodPlaceholder ?? _this.periodPlaceholder,
  );
}