dateOnly property Null safety
Does our format only only date fields, and no time fields.
For example, 'yyyy-MM-dd' would be true, but 'dd hh:mm' would be false.
Implementation
bool get dateOnly => _dateOnly ??= _checkDateOnly;
Does our format only only date fields, and no time fields.
For example, 'yyyy-MM-dd' would be true, but 'dd hh:mm' would be false.
bool get dateOnly => _dateOnly ??= _checkDateOnly;