toDate property

DateTime get toDate

this will convert Timestamp into DateTime

Implementation

DateTime get toDate {
  return DateTime.fromMillisecondsSinceEpoch(timestamp ?? -1);
}