CardSettingsDateTimePicker constructor

CardSettingsDateTimePicker({
  1. Key? key,
  2. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  3. FormFieldSetter<DateTime>? onSaved,
  4. FormFieldValidator<DateTime>? validator,
  5. DateTime? initialValue,
  6. bool enabled = true,
  7. bool visible = true,
  8. String label = "Date Time",
  9. ValueChanged<DateTime>? onChanged,
  10. TextAlign? contentAlign,
  11. Icon? icon,
  12. TextAlign? labelAlign,
  13. double? labelWidth,
  14. Widget? requiredIndicator,
  15. DateTime? firstDate,
  16. DateTime? lastDate,
  17. TextStyle? style,
  18. bool? showMaterialonIOS,
  19. EdgeInsetsGeometry? fieldPadding,
  20. Widget dateBuilder(
    1. BuildContext,
    2. Widget
    )?,
  21. Widget timeBuilder(
    1. BuildContext,
    2. Widget
    )?,
})

Implementation

CardSettingsDateTimePicker({
  Key? key,
  AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  FormFieldSetter<DateTime>? onSaved,
  FormFieldValidator<DateTime>? validator,
  DateTime? initialValue,
  this.enabled = true,
  this.visible = true,
  this.label = "Date Time",
  this.onChanged,
  this.contentAlign,
  this.icon,
  this.labelAlign,
  this.labelWidth,
  this.requiredIndicator,
  this.firstDate,
  this.lastDate,
  this.style,
  this.showMaterialonIOS,
  this.fieldPadding,
  this.dateBuilder,
  this.timeBuilder,
}) : super(
          key: key,
          initialValue: initialValue ?? DateTime.now(),
          onSaved: onSaved,
          validator: validator,
          // autovalidate: autovalidate,
          autovalidateMode: autovalidateMode,
          builder: (FormFieldState<DateTime> field) =>
              (field as _CardSettingsDateTimePickerState)
                  ._build(field.context));