get<T> method

Future<T> get<T>(
  1. String key
)

Retrieve a value by key.

Implementation

Future<T> get<T>(String key) {
  return Future.value(_sharedPreferences.get('${_prefix}_$key') as T);
}