clear method Null safety
Clears the database and restarts from top page.
Implementation
Future<void> clear() async {
final DaoProductList daoProductList = DaoProductList(localDatabase);
productQuery.toTopPage();
while (await daoProductList.delete(productQuery.getProductList())) {
productQuery.toNextPage();
}
productQuery.toTopPage();
partialProductList.clear();
}