ToastEntry class
Configuration for a single toast notification.
Encapsulates all properties needed to display and manage a toast, including builder, location, timing, and dismissal behavior.
Constructors
- ToastEntry({required ToastBuilder builder, required ToastLocation location, bool dismissible = true, Curve curve = Curves.easeInOut, Duration duration = kDefaultDuration, required CapturedThemes? themes, required CapturedData? data, VoidCallback? onClosed, Duration? showDuration = const Duration(seconds: 5)})
- Creates a toast entry configuration.
Properties
- builder → ToastBuilder
-
Builder function to create the toast widget.
final
- curve → Curve
-
Animation curve for entry/exit transitions.
final
- data → CapturedData?
-
Captured inherited widget data to apply to the toast.
final
- dismissible → bool
-
Whether the toast can be dismissed by user interaction.
final
- duration → Duration
-
Duration for entry/exit animations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- location → ToastLocation
-
Position where the toast should appear.
final
- onClosed → VoidCallback?
-
Callback invoked when toast is closed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDuration → Duration?
-
How long the toast remains visible before auto-dismissing.
final
- themes → CapturedThemes?
-
Captured theme data to apply to the toast.
final
Methods
-
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