showError function

void showError(
  1. BuildContext context,
  2. String message
)

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);
}