FormeDateTimeField constructor

FormeDateTimeField({
  1. Key? key,
  2. String? name,
  3. DateTime? initialValue,
  4. FormeAsyncValidator<DateTime?>? asyncValidator,
  5. Duration? asyncValidatorDebounce,
  6. AutovalidateMode? autovalidateMode,
  7. bool enabled = true,
  8. FocusNode? focusNode,
  9. FormeFieldInitialized<DateTime?>? onInitialized,
  10. FormeFieldSetter<DateTime?>? onSaved,
  11. FormeFieldStatusChanged<DateTime?>? onStatusChanged,
  12. int? order,
  13. bool quietlyValidate = false,
  14. bool readOnly = false,
  15. bool requestFocusOnUserInteraction = true,
  16. FormeFieldValidationFilter<DateTime?>? validationFilter,
  17. FormeValidator<DateTime?>? validator,
  18. FormeFieldDecorator<DateTime?>? decorator,
  19. String? cancelText,
  20. String? confirmText,
  21. DatePickerEntryMode? dateInitialEntryMode,
  22. String? errorFormatText,
  23. String? errorInvalidText,
  24. String? fieldHintText,
  25. String? fieldLabelText,
  26. String? helpText,
  27. DatePickerMode? initialDatePickerMode,
  28. TimePickerEntryMode? initialEntryMode,
  29. RouteSettings? routeSettings,
  30. SelectableDayPredicate? selectableDayPredicate,
  31. String? timeCancelText,
  32. String? timeConfirmText,
  33. String? timeHelpText,
  34. RouteSettings? timeRouteSettings,
  35. TransitionBuilder? dateTransitionBuilder,
  36. bool use24hFormat = false,
  37. TransitionBuilder? timeTransitionBuilder,
  38. TextDirection? textDirection,
  39. Locale? locale,
  40. bool useRootNavigator = true,
  41. Offset? anchorPoint,
  42. TextInputType? keyboardType,
  43. String? hourLabelText,
  44. String? minuteLabelText,
  45. EntryModeChangeCallback? onEntryModeChanged,
  46. Offset? timeAnchorPoint,
  47. String? timeErrorInvalidText,
  48. FormeDateTimeType type = FormeDateTimeType.date,
  49. DateTime? firstDate,
  50. DateTime? lastDate,
  51. required FormeDateTimeTriggerBuilder triggerBuilder,
})

Implementation

FormeDateTimeField({
  super.key,
  super.name,
  super.initialValue,
  super.asyncValidator,
  super.asyncValidatorDebounce,
  super.autovalidateMode,
  super.enabled = true,
  super.focusNode,
  super.onInitialized,
  super.onSaved,
  super.onStatusChanged,
  super.order,
  super.quietlyValidate = false,
  super.readOnly = false,
  super.requestFocusOnUserInteraction = true,
  super.validationFilter,
  super.validator,
  super.decorator,
  this.cancelText,
  this.confirmText,
  this.dateInitialEntryMode,
  this.errorFormatText,
  this.errorInvalidText,
  this.fieldHintText,
  this.fieldLabelText,
  this.helpText,
  this.initialDatePickerMode,
  this.initialEntryMode,
  this.routeSettings,
  this.selectableDayPredicate,
  this.timeCancelText,
  this.timeConfirmText,
  this.timeHelpText,
  this.timeRouteSettings,
  this.dateTransitionBuilder,
  this.use24hFormat = false,
  this.timeTransitionBuilder,
  this.textDirection,
  this.locale,
  this.useRootNavigator = true,
  this.anchorPoint,
  this.keyboardType,
  this.hourLabelText,
  this.minuteLabelText,
  this.onEntryModeChanged,
  this.timeAnchorPoint,
  this.timeErrorInvalidText,
  this.type = FormeDateTimeType.date,
  this.firstDate,
  this.lastDate,
  required this.triggerBuilder,
}) : super.allFields(
        builder: (baseState) {
          return triggerBuilder.call(baseState as FormeDateTimeFieldState);
        },
      );