FormBuilderDateTimePicker constructor
FormBuilderDateTimePicker({@required String attribute, List<FormFieldValidator> validators: const [], bool readOnly: false, InputType inputType: InputType.both, EdgeInsets scrollPadding: const EdgeInsets.all(20.0), double cursorWidth: 2.0, bool enableInteractiveSelection: true, InputDecoration decoration: const InputDecoration(), IconData resetIcon: Icons.close, TimeOfDay initialTime: const TimeOfDay(hour: 12, minute: 0), TextInputType keyboardType: TextInputType.text, TextAlign textAlign: TextAlign.start, bool autofocus: false, bool obscureText: false, bool autocorrect: true, int maxLines: 1, bool maxLengthEnforced: true, bool expands: false, bool autovalidate: false, bool editable: true, DateTime initialValue, DateFormat format, DateTime firstDate, DateTime lastDate, ValueChanged<DateTime> onChanged, DateTime initialDate, FormFieldValidator<DateTime> validator, FormFieldSetter<DateTime> onSaved, ValueChanged<DateTime> onFieldSubmitted, DatePickerMode initialDatePickerMode, Locale locale, bool selectableDayPredicate(DateTime), TextDirection textDirection, TextEditingController controller, FocusNode focusNode, TextStyle style, bool enabled, int maxLength, List<TextInputFormatter> inputFormatters, ValueTransformer valueTransformer, TransitionBuilder builder, Future<TimeOfDay> timePicker(BuildContext context), Future<DateTime> datePicker(BuildContext context), bool showCursor, int minLines, TextInputAction textInputAction, VoidCallback onEditingComplete, InputCounterWidgetBuilder buildCounter, Radius cursorRadius, Color cursorColor, Brightness keyboardAppearance, TextCapitalization textCapitalization: TextCapitalization.none, StrutStyle strutStyle })
Implementation
FormBuilderDateTimePicker({
@required this.attribute,
this.validators = const [],
this.readOnly = false,
this.inputType = InputType.both,
this.scrollPadding = const EdgeInsets.all(20.0),
this.cursorWidth = 2.0,
this.enableInteractiveSelection = true,
this.decoration = const InputDecoration(),
this.resetIcon = Icons.close,
this.initialTime = const TimeOfDay(hour: 12, minute: 0),
this.keyboardType = TextInputType.text,
this.textAlign = TextAlign.start,
this.autofocus = false,
this.obscureText = false,
this.autocorrect = true,
this.maxLines = 1,
this.maxLengthEnforced = true,
this.expands = false,
this.autovalidate = false,
this.editable = true,
this.initialValue,
this.format,
this.firstDate,
this.lastDate,
this.onChanged,
this.initialDate,
this.validator,
this.onSaved,
this.onFieldSubmitted,
this.initialDatePickerMode,
this.locale,
this.selectableDayPredicate,
this.textDirection,
this.controller,
this.focusNode,
this.style,
this.enabled,
this.maxLength,
this.inputFormatters,
this.valueTransformer,
this.builder,
this.timePicker,
this.datePicker,
this.showCursor,
this.minLines,
this.textInputAction,
this.onEditingComplete,
this.buildCounter,
this.cursorRadius,
this.cursorColor,
this.keyboardAppearance,
this.textCapitalization = TextCapitalization.none,
this.strutStyle,
});