Time constructor

const Time(
  1. double _value,
  2. TimeUnit _unit
)

Creates a new Time quantity with the given value and unit.

Example:

final duration = Time(120.0, TimeUnit.second);
final meetingLength = Time(1.5, TimeUnit.hour);

Implementation

const Time(super._value, super._unit);