add method

void add(
  1. Duration duration
)

Adds duration to this Time object.

Implementation

void add(Duration duration) {
  final DateTime temp = _dateTime.add(duration);

  _dateTime = DateTime(0, 0, 0, temp.hour, temp.minute);
}