toDateTime method

DateTime toDateTime()

Returns a DateTime object which represents this Time object.

The date is set to the current date.

Implementation

DateTime toDateTime() {
  final DateTime now = DateTime.now();

  return DateTime(now.year, now.month, now.day, hour, minute);
}