copyWith method

  1. @override
FieldStyleDateTimePicker copyWith({
  1. TextStyle? style,
  2. VoidCallback? onTap,
  3. FocusNode? focusNode,
  4. bool? autofocus,
  5. bool? enableFeedback,
  6. EdgeInsetsGeometry? padding,
  7. bool? hideDefaultSuffixIcon,
  8. DateTime? initialPickerDateTime,
  9. CupertinoDatePickerOptions? cupertinoDatePickerOptions,
  10. MaterialDatePickerOptions? materialDatePickerOptions,
  11. MaterialTimePickerOptions? materialTimePickerOptions,
  12. InputDecoration? decoration,
  13. DateFormat? dateFormat,
  14. DateTime? firstDate,
  15. DateTime? lastDate,
  16. DateTimeFieldPickerMode? mode,
  17. DateTimeFieldPickerPlatform? pickerPlatform,
  18. double? footerSpacing,
  19. 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,
  );
}