OverlayPortalController class

A class to show, hide and bring to top an OverlayPortal's overlay child in the target Overlay.

A OverlayPortalController can only be given to at most one OverlayPortal at a time. When an OverlayPortalController is moved from one OverlayPortal to another, its isShowing state does not carry over.

OverlayPortalController.show and OverlayPortalController.hide can be called even before the controller is assigned to any OverlayPortal, but they typically should not be called while the widget tree is being rebuilt.

Constructors

OverlayPortalController({String? debugLabel})
Creates an OverlayPortalController, optionally with a String identifier debugLabel.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isShowing bool
Whether the associated OverlayPortal should build and show its overlay child, using its overlayChildBuilder.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

hide() → void
Hide the OverlayPortal's overlay child.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() → void
Show the overlay child of the OverlayPortal this controller is attached to, at the top of the target Overlay.
toggle() → void
Conventience method for toggling the current isShowing status.
toString() String
A string representation of this object.
override

Operators

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