CardSettingsDatePicker constructor

CardSettingsDatePicker({
  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',
  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. DateFormat? dateFormat,
  18. TextStyle? style,
  19. bool? showMaterialonIOS,
  20. EdgeInsetsGeometry? fieldPadding,
})

Implementation

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