write method

Future<void> write(
  1. String fileName,
  2. T toWrite
)

writes toWrite to storage according to LocalValue.basePath and LocalValue.documentType.

It is possible to put a path in fileName (i.e. write('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<void> write(String fileName, T toWrite) {
  return super.writeValue(fileName, toWrite);
}