ChatCallKitCallModel constructor

ChatCallKitCallModel({
  1. ChatCallKitCall? curCall,
  2. Map<String, ChatCallKitCall>? recvCalls,
  3. String? agoraRTCToken,
  4. ChatCallKitCallState state = ChatCallKitCallState.idle,
  5. bool hasJoined = false,
  6. int? agoraUid,
  7. String? curDevId,
  8. 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 ?? {};