close method

  1. @override
Future close()
override

Disposes of any outstanding resources.

Implementation

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