A storage bucket associated with a page in an app.

Useful for storing per-page state that persists across navigations from one page to another.

Constructors

PageStorageBucket()

Properties

hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

readState(BuildContext context, { Object identifier }) → dynamic

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

writeState(BuildContext context, data, { Object identifier }) → void

Write the given data into this page storage bucket using an identifier computed from the given context. The identifier is based on the keys found in the path from context to the root of the widget tree for this page. Keys are collected until the widget tree's root is reached or a GlobalKey is found.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited