deleteAll method

Future<int> deleteAll()

Delete all products from the database

Implementation

Future<int> deleteAll() async {
  // We return the number of rows deleted ie the number of products deleted
  return localDatabase.database.delete(_TABLE_PRODUCT);
}