PopFromStashEnhancement class

An enhancement used to pop the latest element of the Stash onto a field.

Inheritance

Constructors

PopFromStashEnhancement({required Field field})
Initialise this enhancement with the hardset parameters.

Properties

description String
A longer description of what the enhancement can do, or details left by or regarding the developer.
finalinherited
descriptionLocalisation Map<String, String>
Localisations for this enhancement, where the key is a locale tag and the value is the description of the enhancement. If the value for the current locale is non-null, it will be used instead of description.
finalinherited
field Field
Which field this enhancement is for.
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
icon IconData
An icon that will show the enhancement if activated by the user in the quick menu.
finalinherited
label String
Name of the enhancement that very shortly describes what it does.
finalinherited
labelLocalisation Map<String, String>
Localisations for this enhancement, where the key is a locale tag and the value is the label of the enhancement. If the value for the current locale is non-null, it will be used instead of label.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
uniqueKey String
A unique name that allows distinguishing this type from others, particularly for the purposes of differentiating between persistent settings keys.
finalinherited

Methods

enhanceCreatorParams({required BuildContext context, required WidgetRef ref, required AppModel appModel, required CreatorModel creatorModel, required EnhancementTriggerCause cause}) Future<void>
Perform a change to the CreatorModel, executing the functionality of this enhancement. An EnhancementTriggerCause may be used to modify the behavior of the enhancement's function depending on whether the enhancement is being executed on auto, manual or cascade modes.
override
getLocalisedDescription(AppModel appModel) String
Get the best localisation for the description of this enhancement. If there is no localisation, the fallback is description.
inherited
getLocalisedLabel(AppModel appModel) String
Get the best localisation for the label of this enhancement. If there is no localisation, the fallback is label.
inherited
initialise() Future<void>
This function is run at startup. It is not called again if already run.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareResources() Future<void>
If an enhancement requires resources to function, they can be prepared here and this function will be run once only at runtime during the initialisation step.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

key → const String
Used to identify this enhancement and to allow a constant value for the default mappings value of AnkiMapping.
'pop_from_stash'