DatePicker constructor

DatePicker({
  1. DatePickerMode mode = DatePickerMode.date,
  2. bool allowPast = true,
  3. bool allowFuture = true,
  4. Object? defaultDateTime,
  5. Object? minDateTime,
  6. Object? maxDateTime,
  7. bool dismissible = true,
  8. String? outputAs,
})

Implementation

DatePicker({
  this.mode = DatePickerMode.date,
  this.allowPast = true,
  this.allowFuture = true,
  Object? defaultDateTime,
  Object? minDateTime,
  Object? maxDateTime,
  this.dismissible = true,
  this.outputAs,
}) : defaultDateTime = normalizeNullableExpression(defaultDateTime),
     minDateTime = normalizeNullableExpression(minDateTime),
     maxDateTime = normalizeNullableExpression(maxDateTime);