scheme property

String? get scheme

The URL scheme a consumer uses: https/http for an HTTP tunnel (or any TLS one), otherwise null for plain TCP.

Implementation

String? get scheme =>
    secure ? 'https' : (protocol == TunnelProtocol.http ? 'http' : null);