InputValidator class

Centralized input validation for CometChat Calls SDK. All validation logic is consolidated here to ensure consistency.

Requirements: 1.2, 1.3, 2.5, 3.4, 4.4, 4.5

Constructors

InputValidator()

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

validateAppId(String? appId) CometChatCallsException?
Validates appId for SDK initialization. Returns null if valid, CometChatCallsException if invalid.
validateAuthKey(String? authKey) CometChatCallsException?
Validates authKey for login. Returns null if valid, CometChatCallsException if invalid.
validateAuthToken(String? authToken) CometChatCallsException?
Validates authToken for login with auth token. Returns null if valid, CometChatCallsException if invalid.
validateCallToken(String? callToken) CometChatCallsException?
Validates callToken for session joining. Returns null if valid, CometChatCallsException if invalid.
validateRegion(String? region) CometChatCallsException?
Validates region for SDK initialization. Returns null if valid, CometChatCallsException if invalid.
validateSessionId(String? sessionId) CometChatCallsException?
Validates sessionId for token generation and session joining. Returns null if valid, CometChatCallsException if invalid.
validateUid(String? uid) CometChatCallsException?
Validates uid for login. Returns null if valid, CometChatCallsException if invalid.