Toasts class

Transient notifications shown in the bottom-right #toasts region.

Constructors

Toasts(Element _host, {Duration ttl = const Duration(seconds: 4)})
Creates a toast host bound to host.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ttl Duration
How long a toast stays before auto-dismissing.
final

Methods

error(String message) → void
Shows an error toast.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show(String message, {String kind = ''}) → void
Shows a neutral toast.
success(String message) → void
Shows a success toast.
toString() String
A string representation of this object.
inherited

Operators

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