getMap static method

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

Implementation

static Map<String, dynamic>? getMap(String key) {
  String? data = prefs?.getString(key);
  return (data == null || data.isEmpty) ? null : json.decode(data);
}