GetKeys function

Set<String> GetKeys()

Implementation

Set<String> GetKeys() {
  final keys = _readCookies().keys.map(_decodeValue).toSet();

  try {
    final storage = web.window.localStorage;
    for (var index = 0; index < storage.length; index++) {
      final key = storage.key(index);
      if (key != null) keys.add(key);
    }
  } catch (_) {
    keys.addAll(_largeMemoryFallback.keys);
  }

  return keys;
}