getObject static method

Map? getObject(
  1. String key
)

get object.

Implementation

static Map? getObject(String key) {
  String? _data = _prefs?.getString(key);
  return (_data == null || _data.isEmpty) ? null : json.decode(_data);
}