read method

Future<T?> read(
  1. String id
)

reads from storage according to LocalValue.basePath and LocalValue.documentType. returns null if nothing is at that path, T if otherwise.

It is possible to put a path in id (i.e. read('my/path/${user.id}')), but is not recommended because subsequent lookups will need to be pathed the same. instead, put path segments when constructing this LocalValue.

Implementation

Future<T?> read(String id) {
  return super.readValue(id);
}