ModalPresentation class
Renders a modal dialog via showDialog. The build callback receives the
dialog's BuildContext and the emitting DiscoveryContext so the modal
body can read ctx.data, close itself, etc.
- Inheritance
-
- Object
- DiscoveryPresentation
- ModalPresentation
Constructors
- ModalPresentation({required Widget build(BuildContext dialogContext, DiscoveryContext ctx), bool barrierDismissible = true})
-
const
Properties
- barrierDismissible → bool
-
final
- build → Widget Function(BuildContext dialogContext, DiscoveryContext ctx)
-
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
-
present(
BuildContext context, DiscoveryTip< Object> tip, DiscoveryContext ctx) → Future<bool> -
Return
trueif the presentation actually rendered. Afalsereturn (e.g. a coach mark whose anchor wasn't mounted in time) means the tip should not be marked as seen and the emit loop may continue.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited