getStorageMap function

Future<Map<String, dynamic>?> getStorageMap(
  1. String key
)

Implementation

Future<Map<String, dynamic>?> getStorageMap(String key) async {
  final storage = await getStorageString(key);
  if (storage != null && storage.isNotEmpty) {
    return jsonDecode(storage);
  }
  return null;
}