getMap static method

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

Implementation

static Future<Map<String, dynamic>?> getMap(String key) async {
  final result = await _cacheApi.getMap(key);
  if (result != null) {
    Map<String, dynamic>? map = {};
    result.forEach((key, value) {
      if (key != null) {
        map[key] = value;
      }
    });
    return map;
  }
  return null;
}