toDate method
Converts the integer (assumed as millisecondsSinceEpoch) to a DateTime.
Returns null if the integer itself is null.
Implementation
DateTime? toDate() {
if (this == null) return null;
return DateTime.fromMillisecondsSinceEpoch(this!);
}