find method

Future<T?> find(
  1. dynamic id
)
inherited

Find a model by its primary key.

Implementation

Future<T?> find(dynamic id) async {
  return query.where(primaryKey, '=', id).first();
}