close method

Future close()

Closes the tracker and doesn't accept new listeners.

Implementation

Future close() async {
  _callbacks.clear();
  if (!_controller.isClosed) {
    await _controller.close();
  }
}