PageStorageBucket class

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
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readState(BuildContext context, {Object? identifier}) → dynamic
Read given data from into this page storage bucket using the specified identifier or an identifier computed from the given context. The computed identifier is based on the PageStorageKeys found in the path from context to the PageStorage widget that owns this page storage bucket.
toString() String
A string representation of this object.
inherited
writeState(BuildContext context, dynamic data, {Object? identifier}) → void
Write the given data into this page storage bucket using the specified identifier or an identifier computed from the given context. The computed identifier is based on the PageStorageKeys found in the path from context to the PageStorage widget that owns this page storage bucket.

Operators

operator ==(Object other) bool
The equality operator.
inherited