close method

  1. @mustCallSuper
Future<void> close()

Must call this method after using this instance. This method will close the Timer and release any resources that this holds.

Implementation

@mustCallSuper
Future<void> close() async {
  _timer?.cancel();
  await _stream.close();
}