showError static method

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

Implementation

static void showError(BuildContext context, String title, String message) {
  if (context.mounted) {
    WidgetsBinding.instance.addPostFrameCallback((_) {
      if (context.mounted) {
        QuickAlert.show(
          context: context,
          type: QuickAlertType.error,
          title: title,
          text: message,
        );
      }
    });
  }
}