DelightToastBar class
Delight Toast core class
Constructors
- DelightToastBar({Duration snackbarDuration = const Duration(milliseconds: 5000), DelightSnackbarPosition position = DelightSnackbarPosition.bottom, required WidgetBuilder builder, Duration animationDuration = const Duration(milliseconds: 700), bool autoDismiss = false, Curve? animationCurve})
- Initialise Delight Toastbar with required parameters
Properties
- animationCurve → Curve?
-
Animation Curve
final
- animationDuration → Duration
-
Duration of animated transitions
final
- autoDismiss → bool
-
Set true to dismiss toast automatically based on snackbarDuration
final
- builder → WidgetBuilder
-
Pass the widget inside builder context
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- info ↔ SnackBarInfo
-
Info on each snackbar
latefinal
- position → DelightSnackbarPosition
-
Position of toast
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snackbarDuration → Duration
-
Duration of toast when autoDismiss is true
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
) → void - Remove individual toasbars on dismiss
-
show(
BuildContext context) → void - Push the snackbar in current context
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
removeAll(
) → void - Remove all the snackbar in the context