showError function
Implementation
void showError(BuildContext context, String message) {
asToastX(context,
child: Text(
message,
style: asTextStyle(color: Colors.white),
),
toastType: ToastType.error,
showingPosition: ShowingPosition.CENTER,
toastDirection: ToastDirection.ttb,
animationForce: AnimationForce.light);
}