ContextAnchor class
An Anchor resolved from a plain BuildContext.
If context is null (const ContextAnchor()), it's resolved by the
consumer (e.g. PopoverConfiguration.show) to whatever BuildContext
the show() call itself received.
Constructors
- ContextAnchor([BuildContext? context])
-
Creates a ContextAnchor.
const
Properties
- context → BuildContext?
-
The context to anchor to, or null to use the consumer's own context.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
resolve(
BuildContext context) → Anchor -
Fills in any defaults this anchor needs from
context— the BuildContext of whatevershow()call is about to use this anchor.override -
subscribe(
) → AnchorSubscription -
Starts a live subscription to this anchor's position/visibility.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited