icon property

String get icon

Implementation

String get icon {
  switch (code) {
    case HttpStatus.ok:
      return "check_circle_outline";

    // page not found
    case HttpStatus.notFound:
      return "search_off";

    // not connected
    case HttpStatus.gatewayTimeout:
      return "cloud_off";

    // user rights
    case HttpStatus.unauthorized:
      return "no_encryption_outlined";

    // remote http call failed
    case HttpStatus.badGateway:
      return "mood_bad";

    // parse error
    case HttpStatus.noContent:
      return "bug_report_outlined";

    default:
      return "error_outline";
  }
}