openBestChoice method Null safety

Future openBestChoice()

Implementation

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