triggerAll method

Future<void> triggerAll(
  1. dynamic newValue,
  2. dynamic oldValue
)

Triggers all watchers in this group with the same values

Implementation

Future<void> triggerAll(dynamic newValue, dynamic oldValue) async {
  for (final watcher in _watchers) {
    try {
      await watcher.trigger(newValue, oldValue);
    } catch (error) {
      if (enableDebugMode) {
        _logger.error(
            'Error triggering watcher for path "${watcher.path}": $error');
      }
    }
  }
}