getCallLogs method
Fetch call logs with specific timerange Example: getCallLogs("1h"), getCallLogs("6h"), getCallLogs("1w"), getCallLogs("all")
Implementation
Stream<List<CallLogEntry>> getCallLogs(String range) {
return _callLogsChannel
.receiveBroadcastStream({"range": range})
.map((event) {
final List<dynamic> decoded = jsonDecode(event);
return decoded
.map((e) => CallLogEntry.fromMap(Map<String, dynamic>.from(e)))
.toList();
});
}