MDNotification constructor
MDNotification({})
Implementation
MDNotification({
required this.senderID,
required this.message,
required this.title,
required this.details,
required this.procedureName,
this.state='0',
this.userID,
this.topic,
}) {
if (topic == null && userID == null) {
throw Exception('Topic or UserID must be provided');
}else if(topic != null && userID != null){
throw Exception('Only one of Topic or UserID must be provided');
}
}