openBestChoice method Null safety
Implementation
Future<FetchedProduct> openBestChoice() async {
final Product? product = await DaoProduct(localDatabase).get(barcode);
if (product != null) {
return FetchedProduct(product);
}
return openUniqueProductSearch();
}