latest method
The latest methods allow you to easily order results by id in descending. By default, the result will be ordered by the id field. Or, you may pass the key that you wish to sort by:
Example:
list.latest()
Implementation
List<Map<T, T>> latest([String key = 'id']) => sortBy(key, isDesc: true);