find method

Future find(
  1. int id
)

Implementation

Future find(int id) async {
  Database db = await database;

  _result = await db.rawQuery("SELECT * FROM $table WHERE id = $id");

  if (_result.isEmpty) return null;

  return fromMap(_result.first);
}