valueForProtocol method

String? valueForProtocol(
  1. String protocol
)

Implementation

String? valueForProtocol(String protocol) {
  final component = _components.firstWhere(
        (c) => c.$1.name == protocol,
    orElse: () => (Protocols.ip4, ''),
  );
  return component.$1.name == protocol ? component.$2 : null;
}