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