FormeDateTimeField constructor
FormeDateTimeField({
- Key? key,
- String? name,
- DateTime? initialValue,
- FormeAsyncValidator<
DateTime?> ? asyncValidator, - Duration? asyncValidatorDebounce,
- AutovalidateMode? autovalidateMode,
- bool enabled = true,
- FocusNode? focusNode,
- FormeFieldInitialized<
DateTime?> ? onInitialized, - FormeFieldSetter<
DateTime?> ? onSaved, - FormeFieldStatusChanged<
DateTime?> ? onStatusChanged, - int? order,
- bool quietlyValidate = false,
- bool readOnly = false,
- bool requestFocusOnUserInteraction = true,
- FormeFieldValidationFilter<
DateTime?> ? validationFilter, - FormeValidator<
DateTime?> ? validator, - FormeFieldDecorator<
DateTime?> ? decorator, - String? cancelText,
- String? confirmText,
- DatePickerEntryMode? dateInitialEntryMode,
- String? errorFormatText,
- String? errorInvalidText,
- String? fieldHintText,
- String? fieldLabelText,
- String? helpText,
- DatePickerMode? initialDatePickerMode,
- TimePickerEntryMode? initialEntryMode,
- RouteSettings? routeSettings,
- SelectableDayPredicate? selectableDayPredicate,
- String? timeCancelText,
- String? timeConfirmText,
- String? timeHelpText,
- RouteSettings? timeRouteSettings,
- TransitionBuilder? dateTransitionBuilder,
- bool use24hFormat = false,
- TransitionBuilder? timeTransitionBuilder,
- TextDirection? textDirection,
- Locale? locale,
- Offset? anchorPoint,
- TextInputType? keyboardType,
- String? hourLabelText,
- String? minuteLabelText,
- EntryModeChangeCallback? onEntryModeChanged,
- Offset? timeAnchorPoint,
- String? timeErrorInvalidText,
- FormeDateTimeType type = FormeDateTimeType.date,
- DateTime? firstDate,
- DateTime? lastDate,
- 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);
},
);