PopupController class abstract
A controller used to control the properties of a single popup. The controller should be disposed when it is not going to be used anymore.
Constructors
- PopupController()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- popupAnimationController → AnimationController?
-
The AnimationController associated with the popup.
no setter
- popupPositionController → CustomPositionedWidgetController?
-
The CustomPositionedWidgetController associated with the popup. It can control the offset and padding of the popup.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
changeOffset(
OffsetBuilder offsetBuilder) → void -
Changes the offset of the popup according to the returned result by the provided
OffsetBuilder
. -
create(
{required BuildContext context, required ContentBuilder builder, OffsetBuilder offsetBuilder, EdgeInsets padding, bool canGoOffScreen, TransitionBuilder transitionBuilder, Duration transitionDuration, Duration reverseTransitionDuration, Curve transitionCurve, Curve reverseTransitionCurve}) → void - Creates a popup and displays it anywhere on the screen. Does nothing if the popup has already been created. If you want to control the popup, you can inspect the exposed properties of the PopupController. A controller controls at most one popup at a time, for showing another popup at the same time, use another controller.
-
dismiss(
) → void - Dismisses the popup. Does nothing if the popup is not created. This will remove the popup entirely from the overlay, so no animations will be shown.
-
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