getObject static method

Map<String, dynamic> getObject(
  1. String key
)

get object.

Implementation

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