copyWith method
FieldStyleDateTimePicker
copyWith({
- TextStyle? style,
- VoidCallback? onTap,
- FocusNode? focusNode,
- bool? autofocus,
- bool? enableFeedback,
- EdgeInsetsGeometry? padding,
- bool? hideDefaultSuffixIcon,
- DateTime? initialPickerDateTime,
- CupertinoDatePickerOptions? cupertinoDatePickerOptions,
- MaterialDatePickerOptions? materialDatePickerOptions,
- MaterialTimePickerOptions? materialTimePickerOptions,
- InputDecoration? decoration,
- DateFormat? dateFormat,
- DateTime? firstDate,
- DateTime? lastDate,
- DateTimeFieldPickerMode? mode,
- DateTimeFieldPickerPlatform? pickerPlatform,
- double? headerSpacing,
override
Implementation
@override
FieldStyleDateTimePicker copyWith({
TextStyle? style,
VoidCallback? onTap,
FocusNode? focusNode,
bool? autofocus,
bool? enableFeedback,
EdgeInsetsGeometry? padding,
bool? hideDefaultSuffixIcon,
DateTime? initialPickerDateTime,
CupertinoDatePickerOptions? cupertinoDatePickerOptions,
MaterialDatePickerOptions? materialDatePickerOptions,
MaterialTimePickerOptions? materialTimePickerOptions,
InputDecoration? decoration,
intl.DateFormat? dateFormat,
DateTime? firstDate,
DateTime? lastDate,
DateTimeFieldPickerMode? mode,
DateTimeFieldPickerPlatform? pickerPlatform,
double? footerSpacing,
double? headerSpacing,
}) {
return FieldStyleDateTimePicker(
style: style ?? this.style,
onTap: onTap ?? this.onTap,
focusNode: focusNode ?? this.focusNode,
autofocus: autofocus ?? this.autofocus,
enableFeedback: enableFeedback ?? this.enableFeedback,
padding: padding ?? this.padding,
hideDefaultSuffixIcon:
hideDefaultSuffixIcon ?? this.hideDefaultSuffixIcon,
initialPickerDateTime:
initialPickerDateTime ?? this.initialPickerDateTime,
cupertinoDatePickerOptions:
cupertinoDatePickerOptions ?? this.cupertinoDatePickerOptions,
materialDatePickerOptions:
materialDatePickerOptions ?? this.materialDatePickerOptions,
materialTimePickerOptions:
materialTimePickerOptions ?? this.materialTimePickerOptions,
decoration: decoration ?? this.decoration,
dateFormat: dateFormat ?? this.dateFormat,
firstDate: firstDate ?? this.firstDate,
lastDate: lastDate ?? this.lastDate,
mode: mode ?? this.mode,
pickerPlatform: pickerPlatform ?? this.pickerPlatform,
);
}