valueForProtocol method

String? valueForProtocol(
  1. String protocol
)

Implementation

String? valueForProtocol(String protocol) {
  try {
    final component = _components.firstWhere((c) => c.$1.name == protocol);
    // Return null for empty string values (protocols with size 0)
    return component.$2.isEmpty ? null : component.$2;
  } catch (e) {
    // Protocol not found
    return null;
  }
}