dispose method

Future<void> dispose()

Disposes of the tester and closes the bloc.

Implementation

Future<void> dispose() async {
  await _subscription?.cancel();
  _subscription = null;
  await bloc.close();
}