DatetimeFieldWidget constructor

const DatetimeFieldWidget({
  1. Key? key,
  2. required Text title,
  3. void saveValue(
    1. DateTime? value
    )?,
  4. required DateTime? getValue()?,
  5. bool? withDate = true,
  6. bool? withTime = true,
  7. FieldValidation? validation,
  8. required bool? isEditable,
  9. String? emptyDateString = "-",
  10. bool? isDisabled = false,
  11. bool? onlyMonthAndYear = false,
  12. bool? withPicker = true,
  13. bool? withDeletion = true,
  14. HighlightController? highlightController,
  15. FocusNode? focusNode,
  16. TextInputAction? textInputAction,
})

Implementation

const DatetimeFieldWidget({
  Key? key,
  required Text this.title,
  this.saveValue,
  required this.getValue,
  this.withDate = true,
  this.withTime = true,
  this.validation,
  required this.isEditable,
  this.emptyDateString = "-",
  this.isDisabled = false,
  this.onlyMonthAndYear = false,
  this.withPicker = true,
  this.withDeletion = true,
  this.highlightController,
  this.focusNode,
  this.textInputAction,
})  : assert(getValue != null),
      assert(!(isEditable ?? true) || saveValue != null),
      super(key: key);