ToastDuration class
Class for managing duration of showing Toast
Constructors
- ToastDuration(int duration, [int? value])
-
Initialize a custom Toast duration
const
Properties
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
Static Properties
-
values
→ List<
ToastDuration> -
Return a list of predefined
ToastDuration
valueno setter
Constants
- long → const ToastDuration
- Show a Toast using short 3.5 seconds duration
- short → const ToastDuration
- Show a Toast using short 2 seconds duration