OverlayState class
The mutable state for an Overlay widget.
Constructors
Properties
- context → BuildContext
-
The BuildContext for this state object.
no setterinherited
-
entries
→ List<
OverlayEntry> -
An unmodifiable view of the current overlay entries.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mounted → bool
-
Whether this state object is currently in the tree.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widget → Overlay
-
The current widget configuration.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this state.
override
-
didUpdateWidget(
Overlay oldWidget) → void -
Called when the widget configuration changes.
inherited
-
dispose(
) → void -
Called when this state object is removed from the tree permanently.
inherited
-
initState(
) → void -
Called when this state object is first inserted into the tree.
inherited
-
insert(
OverlayEntry entry, {OverlayEntry? below, OverlayEntry? above}) → void -
Inserts
entryinto the overlay, optionally positioned relative tobeloworabove. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setState(
void fn()) → void -
Notifies the framework that the internal state has changed, triggering a rebuild.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited