alignment property
Alignment
get
alignment
Implementation
Alignment get alignment {
switch (gravity) {
case ToastGravity.bottom:
return Alignment.bottomCenter;
case ToastGravity.top:
return Alignment.topCenter;
case ToastGravity.center:
default:
return Alignment.center;
}
}