ToastDuration class

Class for managing duration of showing Toast

Constructors

ToastDuration(int duration, [int? value])
Initialize a custom Toast duration
const

Properties

duration int
Duration value in milliseconds
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int?
Value tag for native internally use duration
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

Static Properties

values List<ToastDuration>
Return a list of predefined ToastDuration value
no 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