storageRead<T> function

Future<T?> storageRead<T>(
  1. String key, {
  2. Map<Type, dynamic>? modelDecoders,
})

Read data from the storage class. Returns the value cast to type T, or null if not found.

Implementation

Future<T?> storageRead<T>(
  String key, {
  Map<Type, dynamic>? modelDecoders,
}) async {
  return await NyStorage.read<T>(key, modelDecoders: modelDecoders);
}