notifyDataChanged method

void notifyDataChanged(
  1. Map<String, dynamic> result
)

Implementation

void notifyDataChanged(Map<String, dynamic> result) {
  final callbacks = <VoidCallback>{};
  for (final key in result.keys) {
    _listeners.keys
        .where((expr) => expr.contains(key))
        .map((expr) => _listeners[expr])
        .whereType<Set<VoidCallback>>()
        .forEach((set) {
      callbacks.addAll(set);
    });
  }
  callbacks.forEach((cb) => cb());
}