UserModel constructor

UserModel({
  1. required String roomId,
  2. required String nickName,
  3. String? clientKey,
  4. String? grade,
  5. dynamic userInfo,
})

Implementation

UserModel({
  required this.roomId,
  required this.nickName,
  String? clientKey,
  String? grade,
  this.userInfo,
}) {
  this.clientKey = clientKey ?? Util.getRandomString(10);
  this.grade = grade ?? 'user';
}