pageErrorChecker method

bool pageErrorChecker(
  1. dynamic response
)

Implementation

bool pageErrorChecker(dynamic response) {
  if (response != null &&
      (response.statusCode == Strings.successCode ||
          response.statusCode == Strings.noDataCode)) {
    return false;
  } else {
    return true;
  }
}