exists<T extends Model> static method

Future<bool> exists<T extends Model>({
  1. required int id,
})

Checks if record with id exists.

Implementation

static Future<bool> exists<T extends Model>({required int id}) async {
  return await find<T>(id: id) != null;
}