deleteById method

  1. @override
Future<int> deleteById({
  1. required String id,
  2. Database? database,
})
override

Implementation

@override
Future<int> deleteById({required String id, Database? database}) async {
  final Database db = database != null ? database : this.database;

  await db.delete(this.entity.tableName, where: 'id = ?', whereArgs: [id]);

  return 1;
}