SmartDialogOverlayEntry class
Custom OverlayEntry that safely handles widget rebuilds during different scheduler phases.
This class ensures that dialog updates are scheduled appropriately to avoid framework exceptions when marking overlays as needing rebuild during specific scheduling phases.
- Inheritance
-
- Object
- OverlayEntry
- SmartDialogOverlayEntry
Constructors
- SmartDialogOverlayEntry.new({required WidgetBuilder builder})
- Creates a SmartDialogOverlayEntry with the specified builder function.
Properties
- builder → WidgetBuilder
-
This entry will include the widget built by this builder in the overlay at
the entry's position.
finalinherited
- canSizeOverlay → bool
-
Whether the content of this OverlayEntry can be used to size the
Overlay.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- maintainState ↔ bool
-
Whether this entry must be included in the tree even if there is a fully
opaque entry above it.
getter/setter pairinherited
- mounted → bool
-
Whether the OverlayEntry is currently mounted in the widget tree.
no setterinherited
- opaque ↔ bool
-
Whether this entry occludes the entire overlay.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
inherited
-
dispose(
) → void -
Discards any resources used by this OverlayEntry.
inherited
-
markNeedsBuild(
) → void -
Cause this entry to rebuild during the next pipeline flush.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
) → void -
Remove this entry from the overlay.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited