close method Null safety

  1. @override
Future<void> close()
override

Disposes of any outstanding resources.

Implementation

@override
Future<void> close() async {
  client.close();
  await _onAuthenticated.close();
  await Future.wait(_services.map((s) => s.close())).then((_) {
    _services.clear();
  });
}