OverlayPortalController class - widgets library (original) (raw)

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 OverlayPortalat a time. When an OverlayPortalController is moved from oneOverlayPortal 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 identifierdebugLabel.

Properties

hashCodeint

The hash code for this object.

no setterinherited

isShowingbool

Whether the associated OverlayPortal should build and show its overlay child, using its overlayChildBuilder.

no setter

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

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

Convenience 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