onCallLogUpdate method
void
onCallLogUpdate(
- dynamic value
Implementation
void onCallLogUpdate(value) async {
if (value) {
if (search.text.trim().isNotEmpty) {
filteredCallLog(search.text.trim());
} else {
var res = await Mirrorfly.getLocalCallLogs();
var list = callLogListFromJson(res);
_callLogList.clear();
callLogList.clear();
_callLogList.addAll(list.data!);
}
var unreadMissedCallCount = await Mirrorfly.getUnreadMissedCallCount();
// print("unreadMissedCallCount from sdk $unreadMissedCallCount");
unreadCallCount.value = unreadMissedCallCount ?? 0;
} else {
debugPrint("onCallLogUpdate : Failed");
}
}