notify static method
Dispatches a diagnostic event with data to all registered listeners and logs it to eventLog.
Implementation
static void notify(String event, Map<String, dynamic> data) {
_eventLog.add(BloomDevToolsEvent(
type: event,
data: data,
timestamp: DateTime.now(),
));
while (_eventLog.length > maxEventLogSize) {
_eventLog.removeAt(0);
}
for (final listener in List.of(_listeners)) {
try {
listener(event, data);
} catch (_) {}
}
}