updateStreams method

Future<void> updateStreams(
  1. List<String>? tables
)

Update all the streams connected to one of the table in the list

Implementation

Future<void> updateStreams(List<String>? tables) async {
  if (tables == null || tables.isEmpty) return;
  for (StreamInfo s in streams) {
    for (String table in tables) {
      if (s.tables.contains(table)) {
        await _updateStream(s);
        continue;
      }
    }
  }
}