delete method

  1. @override
Future<int> delete({
  1. Filter where(
    1. TMeta t
    )?,
  2. bool? useIsolate,
})
inherited

Implementation

@override
Future<int> delete({
  final Filter Function(TMeta t)? where,
  final bool? useIsolate,
}) async {
  final db = await dbContext.database;
  final formattedQuery = where != null
      ? await whereString(
          where,
          useIsolate,
        )
      : null;
  return await db.delete(
    t.tableName,
    where: formattedQuery?.filter,
    whereArgs: formattedQuery?.whereArgs,
  );
}