reInit method
Starts from scratch with a new (or refreshed) Product.
Implementation
void reInit(Product product, {bool backgroundTask = false}) {
this.product = product;
_terms = List<String>.from(initTerms(this.product));
_initTerms = List<String>.from(_terms);
_changed = false;
if (backgroundTask) {
return;
}
try {
robotoffQuestionsNotifier.value.clear();
unawaited(_loadRobotoffQuestions());
} catch (_) {}
_initialized = true;
notifyListeners();
}