ChatCallKitCallModel constructor
ChatCallKitCallModel({
- ChatCallKitCall? curCall,
- Map<
String, ChatCallKitCall> ? recvCalls, - String? agoraRTCToken,
- ChatCallKitCallState state = ChatCallKitCallState.idle,
- bool hasJoined = false,
- int? agoraUid,
- String? curDevId,
- ChatCallKitStateChange? stateChanged,
Implementation
ChatCallKitCallModel({
this.curCall,
Map<String, ChatCallKitCall>? recvCalls,
this.agoraRTCToken,
ChatCallKitCallState state = ChatCallKitCallState.idle,
this.hasJoined = false,
this.agoraUid,
String? curDevId,
this.stateChanged,
}) : curDevId = curDevId ?? ChatCallKitTools.randomStr,
_state = state,
recvCalls = recvCalls ?? {};