NudgePresentation class abstract interface

Strategy (GoF): knows how to put a nudge on screen for one display type.

Bottom sheet and dialog are not just different frame widgets — they are different Flutter entry points (showModalBottomSheet vs showDialog) with different dismissal semantics. Modelling each as a strategy keeps that branching out of the caller and makes a new display type (pip, fullscreen…) an open/closed addition: a new strategy registered in the selector.

Implementers

Properties

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({required BuildContext context, required NudgeSurface surface, required Widget content}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited