CandidateUtils class

Utility class for handling ICE candidate processing and validation. This class contains helper methods extracted from TelnyxClient to reduce complexity and improve code organization.

Constructors

CandidateUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

extractCallIdFromCandidate(Map<String, dynamic> params) String?
Extracts call ID from the candidate message parameters. Supports both new server format (callID in params) and legacy format (callId in dialogParams).
hasRequiredCandidateFields(Map<String, dynamic> params) bool
Validates that the candidate message has all required fields.
normalizeCandidateString(String candidateString) String
Normalizes the candidate string by ensuring proper prefix. Handles different formats that might be received from the server.