init method
void
init()
Implementation
void init(List<LocalContact>? contactList, List<String>? previewContactList,
String from, String? contactName) {
this.from = from;
if (from == "chat" && previewContactList != null && contactName != null) {
this.previewContactList = previewContactList;
previewContactName = contactName;
} else if (contactList != null) {
argContactList = contactList;
} else {
debugPrint("Contact list is Empty");
}
}