showError method

void showError(
  1. String description
)

Implementation

void showError(String description) {
  if (description.contains("DioErrorType.other")) {
    final statusz = humanReadableErrors(description);
    ElegantNotification.error(description: Text(statusz)).show(context!);
  } else {
    ElegantNotification.error(description: Text(description)).show(context!);
  }
}