dispose method
Disposes of the tester and closes the bloc.
Implementation
Future<void> dispose() async {
await _subscription?.cancel();
_subscription = null;
await bloc.close();
}
Disposes of the tester and closes the bloc.
Future<void> dispose() async {
await _subscription?.cancel();
_subscription = null;
await bloc.close();
}