init method
- ProductPreferences productPreferences
Implementation
Future<void> init(ProductPreferences productPreferences) async {
await _onMigrate();
if (_sharedPreferences.getBool(_TAG_INIT) != null) {
return;
}
await productPreferences.resetImportances();
await _sharedPreferences.setBool(_TAG_INIT, true);
}