debugSnapshot static method

  1. @Deprecated('Use getDebugSnapshot instead.')
Map<String, dynamic> debugSnapshot()

Implementation

@Deprecated('Use getDebugSnapshot instead.')
static Map<String, dynamic> debugSnapshot() {
  final snapshot = getDebugSnapshot();
  return <String, dynamic>{
    'initialized': snapshot.initialized,
    'baseUrl': snapshot.baseUrl,
    'publicKeyLast4': snapshot.publicKeyLast4,
    'testerId': snapshot.testerId,
    'connected': snapshot.connected,
    'lastErrorCode': snapshot.lastErrorCode,
    'lastConnectInputKind': snapshot.lastConnectInputKind,
    'queuedEventsCount': snapshot.queuedEventsCount,
    'lastFlushAt': snapshot.lastFlushAt?.toIso8601String(),
    'lastBootstrapAt': snapshot.lastBootstrapAt?.toIso8601String(),
  };
}