latest method

List latest([
  1. String key = 'id'
])

The latest methods allow you to easily order results by id in descending order. By default, the result will be ordered by the table's id column. Or, you may pass the column name that you wish to sort by:

Example:

latest(list)

Implementation

List<dynamic> latest([String key = 'id']) => FxList.latest(this, key);