getMap method

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

Implementation

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;
}