dispose method

Future<void> dispose()

Stops background timers (call at the end of tests that used realtime).

Implementation

Future<void> dispose() async {
  _positionTimer?.cancel();
  _positionTimer = null;
  await bus.closeAll(1001, 'server stopped');
}