toaster library

Classes

Toast
a data object for passing info into the toaster. the Toast is identified by id, which defaults to a random string, but may be set if the toast requires an ID that must be reused or memorized. type is a ToastType that tells the toaster how to style certain aspects of the toast; for instance, the icon on the toast. see ToastType for more details.
ToastAction
an action for the toast. May be omitted if the toast has no action, and is only for informational purposes.
Toaster
ToastType
customization options for the toast. errorToast, warningToast, and successToast are sensible defaults for toasts that fullfill most toast requirements. If you'd like to create your own toast, you may construct an instance of ToastType.

Properties

errorToast ToastType
final
successToast ToastType
final
warningToast ToastType
final

Typedefs

ToastBuilder = Widget Function(Toast toast, Animation<double> animation)