toDateTime method

  1. @override
DateTime toDateTime({
  1. TimeStamp? filler,
  2. bool keepLocal = false,
})
override

Implementation

@override
DateTime toDateTime({TimeStamp? filler, bool keepLocal = false}) {
  filler ??= TimeStamp.now();
  if (_local) return DateTime(filler.day.year, filler.day.month, filler.day.day, hour, minute);
  var utcTime = DateTime.utc(filler.day.year, filler.day.month, filler.day.day, hour, minute);
  return utcTime;
}