deleteBatchLocations method

Future<void> deleteBatchLocations(
  1. List<int> ids
)

Implementation

Future<void> deleteBatchLocations(List<int> ids) async {
  print("DeleteL ${ids.length}");
  final db = await database;
  try {
    final idList = ids.join(',');
    await db.delete(
      'locations',
      where: 'id IN ($idList)',
    );
    print('Data Deleted Successfully:');
  } catch (e) {
    print('ErrorDeleting: $e');
  }
}