addAgentEvent method
Reads one glint.error event the in-app agent posts from the app's own FlutterError.onError and PlatformDispatcher.onError chain.
Implementation
void addAgentEvent(Map<String, Object?>? data) {
if (data == null) return;
switch (data['source']) {
case 'flutter':
_addAgentFlutterError(data);
case 'uncaught':
_addAgentUncaught(data);
}
}