deleteRole method

Future<void> deleteRole(
  1. int id
)

Implementation

Future<void> deleteRole(int id) async {
  final db = await database;
  await db.update(
    'roles',
    {'isDeleted': 1},
    where: 'id = ?',
    whereArgs: [id],
    conflictAlgorithm: ConflictAlgorithm.replace,
  );
}