getScriptStates method

Map<String, String> getScriptStates()

Implementation

Map<String, String> getScriptStates() => Map.fromEntries(
  getAssets(kGameScriptStatePath, true).map((encoded) {
    try {
      final plugin = utf8.decode(base64Url.decode(encoded));
      return MapEntry(plugin, getScriptState(plugin));
    } catch (_) {
      return null;
    }
  }).nonNulls,
);