loadEntryById method

Future<T?> loadEntryById(
  1. int id
)

Get an entry by its id as key.

Implementation

Future<T?> loadEntryById(int id) async {
  var result = (await select(where: (m) => m.id.equals(id), limit: 1));
  return result.isNotEmpty ? result.first : null;
}