closeManager method Null safety

Future<void> closeManager()

Implementation

Future<void> closeManager() async {
  await Future.wait(_sub.map((e) => e.cancel()));
}