dispose method
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');
}
Stops background timers (call at the end of tests that used realtime).
Future<void> dispose() async {
_positionTimer?.cancel();
_positionTimer = null;
await bus.closeAll(1001, 'server stopped');
}