ChatMemberProfile constructor

ChatMemberProfile({
  1. required String address,
  2. required bool intent,
  3. required String role,
  4. required UserV2? userInfo,
})

Implementation

ChatMemberProfile({
  required this.address,
  required this.intent,
  required this.role,
  required this.userInfo,
}) {
  if (!GroupMemberRole.isValidRole(role)) {
    throw Exception('Invalid role');
  }
}