Tracks the host app's root overlays so the SDK can render toasts and other
floating UI without requiring a BuildContext at the call site.
The SDK screens call attach while they build. Services (reconnect loops, print callbacks) can then show a toast even though they have no context.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- overlay → OverlayState?
-
The remembered overlay, or
nullwhen it was never captured or the host app has rebuilt its tree since.no setter
Static Methods
-
attach(
BuildContext context) → void -
Remembers the root overlay of
context. -
detach(
) → void - Forgets the remembered overlay. Called when the host tears the SDK down.
-
resolve(
BuildContext? context) → OverlayState? -
Resolves the overlay for
contextwhen one is supplied, falling back to the remembered root overlay.