getStoredLogs method
Get the stored logs as a list of maps
The list is ordered from oldest to newest
Use limit to get a specific number of logs. The default is 100. If the limit is greater than the number of stored logs, the limit is set to the number of stored logs
Implementation
List<Map> getStoredLogs({int limit = 100}) {
if (limit > _logs.length) {
limit = _logs.length;
}
return _logs.sublist(_logs.length - limit).map((e) => e.toMap()).toList();
}