showErrorMessage method

void showErrorMessage(
  1. String message, {
  2. String? title,
})

Implementation

void showErrorMessage(String message, {String? title}) {
  if (AlertController.instance.onShowInfo == null) {
    alertRequestQueue.add(
      AlertRequest(
        message: message,
        title: title,
        requestType: AlertRequestType.error,
      ),
    );
    redraw();
  } else {
    AlertController.instance.onShowError?.call(
      message: message,
      title: title,
    );
  }
}