name property

String get name

Returns the string representation of the protocol

Implementation

String get name {
  switch (this) {
    case ProxyProtocol.http:
      return 'HTTP';
    case ProxyProtocol.https:
      return 'HTTPS';
    case ProxyProtocol.socks4:
      return 'SOCKS4';
    case ProxyProtocol.socks5:
      return 'SOCKS5';
  }
}