PopupSource class abstract
The source of where a popup will be created from.
In most cases, this will be the origin of a user action like a click or hover. However, it may also be a defined static location or an associated component or element.
- Implementers
Constructors
-
PopupSource.fromRectangle(Rectangle<
num> rectangle, {Alignment alignX = Alignment.Start, Alignment alignY = Alignment.Start}) -
Create a PopupSource from a predefined location (
rectangle
).factory
Properties
- alignOriginX → Alignment?
-
What point of the origin to use on the x-axis.
no setter
- alignOriginY → Alignment?
-
What point of the origin to use on the y-axis.
no setter
-
dimensions
→ Rectangle<
num> ? -
The size of the source and its position relative to the viewport.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRtl → bool
-
Whether the source direction is RTL.
no setter
- popupId ← String?
-
Set the DOM ID of the popup controlled by this source.
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onClose(
) → void - Called when the popup is closed.
-
onDimensionsChanged(
{bool track = false}) → Stream< Rectangle< ?num> > - Returns a stream that has events with the dimensions of a DOM element that the popup is positioned relatively to.
-
onOpen(
) → void - Called when the popup is opened.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited