latestFirst method

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

The latestFirst methods allow you to easily order results by id in descending order and get first record. 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:

latestFirst(list)

Implementation

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