DatetimeFieldWidget constructor
const
DatetimeFieldWidget({
- Key? key,
- required Text title,
- void saveValue(
- DateTime? value
- required DateTime? getValue()?,
- bool? withDate = true,
- bool? withTime = true,
- FieldValidation? validation,
- required bool? isEditable,
- String? emptyDateString = "-",
- bool? isDisabled = false,
- bool? onlyMonthAndYear = false,
- bool? withPicker = true,
- bool? withDeletion = true,
- HighlightController? highlightController,
- FocusNode? focusNode,
- 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);