dateFormat property
DateFormat?
get
dateFormat
Implementation
DateFormat? get dateFormat {
if (_dateFormat != null) {
return _dateFormat;
} else {
return isMonthInput ? _defaultMonthFormat : _defaultDayFormat;
}
}
- @Input()
The DateFormat
used to format dates. When isMonthInput is false, this
defaults to yMMMd
, e.g. "Jul 31, 2015". When isMonthInput is true,
this defaults to yMMM
, e.g. "Jul 2015".
Implementation
@Input()
set dateFormat(DateFormat? value) {
_dateFormat = value;
_input.inputText = _date?.format(dateFormat!) ?? '';
}