toDateTime method

  1. @override
DateTime toDateTime({
  1. TimeStamp? filler,
})
override

Implementation

@override
DateTime toDateTime({TimeStamp? filler}) {
  if (filler == null) {
    return DateTime.utc(year, month, day, 0, 0, 0);
  }
  return DateTime.utc(
    year,
    month,
    day,
    filler.toDateTime().hour,
    filler.toDateTime().minute,
    filler.toDateTime().second,
  );
}