disposeAll static method

Future<void> disposeAll()

Implementation

static Future<void> disposeAll() async {
  final values = _connections.values.toList(growable: false);
  _connections.clear();
  for (final connection in values) {
    await connection.dispose();
  }
}