read<T> static method

T? read<T>(
  1. String key
)

Implementation

static T? read<T>(String key){
  try {
    return _storageBox.read(key) as T;
  } catch (e) {
    return null;
  }
}