SimpleInputPageTraceHelper class

Implementation for "Traces" of an AbstractSimpleInputPageHelper.

Inheritance
Available extensions

Constructors

SimpleInputPageTraceHelper()

Properties

editable → bool
Are items editable?
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
product ↔ Product
Product we are about to edit.
getter/setter pairinherited
reorderable → bool
Is the list of terms reorderable?
no setterinherited
robotoffInsightType → InsightType?
no setteroverride
robotoffQuestionsNotifier → ValueNotifier<Map<RobotoffQuestion, InsightAnnotation?>>
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
separator → String
no setterinherited
terms → List<String>
Returns the current terms to be displayed.
no setterinherited

Methods

addItemsFromController(TextEditingController controller, {bool clearController = true}) → bool
Adds all the non-already existing items from the controller.
inherited
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addTerm(String term) → bool
Returns true if the term was not in the list and then was added.
inherited
answerRobotoffQuestion(RobotoffQuestion question, InsightAnnotation? annotation) → void
inherited
changeProduct(Product changedProduct) → void
Impacts a product in order to take the changes into account.
override
containsTerm(String term) → bool
inherited
dispose() → void
Discards any resources used by the object.
inherited
getAddButtonLabel(AppLocalizations appLocalizations) → String
Returns the label of the corresponding "add" button.
override
getAddExplanationsContent() → WidgetBuilder?
Returns additional examples about the "add" text field.
override
getAddExplanationsTitle(AppLocalizations appLocalizations) → String?
Returns additional examples about the "add" text field.
override
getAddHint(AppLocalizations appLocalizations) → String
Returns the hint of the "add" text field.
override
getAddTooltip(AppLocalizations appLocalizations) → String
Returns the Tooltip for the "add" text field.
override
getAllowEmojis() → bool
Allow emojis in the text field.
inherited
getAnalyticsEditEvent() → AnalyticsEditEvents
Returns the enum to be used for matomo analytics.
override
getAutocompleteManager() → AutocompleteManager?
Instead of the tag type, returns the autocomplete manager.
inherited
getChangedProduct(Product product) → bool
Returns true if changes were made.
inherited
getExtraPhotoWidget(BuildContext context, Product product, String title) → Widget
Typical extra widget for the "add other pics" button.
inherited
getExtraWidget(BuildContext context, Product product) → Widget?
Extra widget to be displayed after the list.
inherited
getIcon() → Widget
Returns the icon data for the list tile.
override
getLanguage() → OpenFoodFactsLanguage
Returns the current language.
inherited
getStamp() → BackgroundTaskDetailsStamp
Stamp to identify similar updates on the same product.
override
getStandardAddButtonLabel(AppLocalizations appLocalizations) → String
Returns the label of the corresponding standard "add" button.
inherited
getSubtitle(AppLocalizations appLocalizations) → String?
Returns the subtitle on the main "edit product" page.
inherited
getSuggestions() → ValueNotifier<SimpleInputSuggestionsState>
Allows to provide some suggestions to the user.
inherited
getTagType() → TagType?
Returns the tag type for autocomplete suggestions.
override
getTextCapitalization() → TextCapitalization?
Text capitalization for the text field.
override
getTitle(AppLocalizations appLocalizations) → String
Returns the title on the main "edit product" page.
override
getTypeLabel(AppLocalizations appLocalizations) → String
Returns the type of the text field (eg: label, category…).
override
hasChanged() → bool
inherited
initTerms(Product product) → List<String>
Returns the terms as they were initially in the product.
override
isNewTerm(String term) → bool
inherited
isOwnerField(Product product) → bool
Returns true if the field is an owner field.
override
isPopulated(Product product) → bool
Returns true if the field is populated.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
reInit(Product product, {bool backgroundTask = false}) → void
Starts from scratch with a new (or refreshed) Product.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
removeTerm(String term) → bool
Returns true if the term was in the list and then was removed.
inherited
replaceItem(int position, String term) → void
inherited
replaceItems(List<String> items) → void
Mainly used when reordering the list.
inherited
replaceListener(VoidCallback listener) → void

Available on ChangeNotifier, provided by the ChangeNotifierExtensions extension

restoreItemsBeforeLastAddition() → void
inherited
splitString(String? input) → List<String>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited