read method

Future read(
  1. String key
)

Get data with custom key

Implementation

Future<dynamic> read(String key) {
  return SharedPreferences.getInstance().then((sharedPreferences) {
    return sharedPreferences.get(key);
  }).catchError((error) {
    print('FlutterPlusUtils.read -> $error');
  });
}