ToastGravity enum Null safety

ToastGravity Used to define the position of the Toast on the screen

Inheritance

Constructors

ToastGravity()
const

Values

TOP → const ToastGravity
const ToastGravity(0)
BOTTOM → const ToastGravity
const ToastGravity(1)
CENTER → const ToastGravity
const ToastGravity(2)
TOP_LEFT → const ToastGravity
const ToastGravity(3)
TOP_RIGHT → const ToastGravity
const ToastGravity(4)
BOTTOM_LEFT → const ToastGravity
const ToastGravity(5)
BOTTOM_RIGHT → const ToastGravity
const ToastGravity(6)
CENTER_LEFT → const ToastGravity
const ToastGravity(7)
CENTER_RIGHT → const ToastGravity
const ToastGravity(8)
SNACKBAR → const ToastGravity
const ToastGravity(9)

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<ToastGravity>
A constant List of the values in this enum, in order of their declaration.
[TOP, BOTTOM, CENTER, TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER_LEFT, CENTER_RIGHT, SNACKBAR]