getSubtitle function

String getSubtitle(
  1. Object exception
)

Implementation

String getSubtitle(Object exception) {
  if (exception is ApiException && exception.type == ApiExceptionType.offline) {
    return "Please check your internet connection and try again.";
  }
  if (exception is ApiException && exception.type == ApiExceptionType.offline) {
    return "Server returned Bad Response";
  }
  return "Sorry for the issue, Our engineers are working on it";
}