PickerSourceRegistry class
Build-stable registry of mounted picker thumbnail hero sources.
BuildContext.visitChildElements is illegal while Flutter is updating a
subtree, and close/open hero lookups can happen during route builds. Cells
register their source as they mount, so the picker page can answer hero
lookups with a normal map read instead of walking the element tree.
Constructors
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
-
clear(
) → void - Forgets every source.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
Object assetId, PickerViewKind viewKind, GallerySource source) → void -
Records
sourcefor the cell ofassetIdinviewKind. -
sourceFor(
Object assetId, PickerViewKind viewKind) → GallerySource? -
The source of the mounted cell of
assetIdinviewKind. -
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
Object assetId, PickerViewKind viewKind, GallerySource source) → void -
Forgets
sourcewhen it is still the one recorded.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited