Time.now constructor

Time.now()

Creates a new Time object from the current time.

Implementation

factory Time.now() {
  final DateTime now = DateTime.now();
  return Time(now.hour, now.minute);
}