InputDatePicker constructor

InputDatePicker(
  1. {Key key,
  2. bool autosave,
  3. bool autovalidate,
  4. String datePattern = 'yyyy-MM-dd',
  5. InputDecoration decoration,
  6. bool enabled,
  7. DateTime firstDate,
  8. DateTime lastDate,
  9. DateTime initialValue,
  10. Map<String, dynamic> map,
  11. ValueChanged<DateTime> onChanged,
  12. ValueSetter<DateTime> onSaved,
  13. String path,
  14. double size = 8 * kMinInteractiveDimension,
  15. DatePickerStyles styles = const DatePickerStyles(),
  16. List<InputValidator> validators,
  17. bool wantKeepAlive = false}
)

Implementation

InputDatePicker({
  Key key,
  bool autosave,
  bool autovalidate,
  this.datePattern = 'yyyy-MM-dd',
  InputDecoration decoration,
  bool enabled,
  this.firstDate,
  this.lastDate,
  DateTime initialValue,
  Map<String, dynamic> map,
  ValueChanged<DateTime> onChanged,
  ValueSetter<DateTime> onSaved,
  String path,
  this.size = 8 * kMinInteractiveDimension,
  this.styles = const DatePickerStyles(),
  List<InputValidator> validators,
  bool wantKeepAlive = false,
})  : assert(size == null || size >= 8 * kMinInteractiveDimension),
      super(
        key: key,
        autosave: autosave,
        autovalidate: autovalidate,
        decoration: decoration,
        enabled: enabled,
        initialValue: initialValue,
        map: map,
        onChanged: onChanged,
        onSaved: onSaved,
        path: path,
        validators: validators,
        wantKeepAlive: wantKeepAlive,
      );