subtract method

void subtract(
  1. Duration duration
)

Subtracts duration from this Time object.

Implementation

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

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