dynamic readState(BuildContext context, { Object identifier })

Read given data from into this page storage bucket using an identifier computed from the given context. More about identifier in writeState.

Source

dynamic readState(BuildContext context, { Object identifier }) {
  return _storage != null ? _storage[identifier ?? _computeStorageIdentifier(context)] : null;
}