VerbTestModel<T extends Verb> class

Model class for studying, testing and evaluating the verb. The model should be initialised with the attributes of the expected that is being evaluated and with the pronouns of the language. The instance also maintains a score representing the amount of correct answers added by using the add method.

Mixed-in types

Constructors

VerbTestModel()

Properties

expected List<String>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
infinitive String
no setter
items UnmodifiableListView<String>
no setter
mode String
no setter
pronouns List<String>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score int
no setter
targetLanguageIso String
no setter
tense String
no setter
translation String
no setter

Methods

add(String item, int person) → void
Adds the answer (item) to the list of answers on the zero-based position corresponding to the person of the conjugation
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
initialise(List<String> expected, List<String> pronouns, String infinitive, String targetLanguageIso, String translation, String mode, String tense) → void
Initialise the model with the attributes of the Verb under test, as well as the pronouns of the language of the verb. Notifies listeners.
isComplete() bool
Returns true if an answer has been submitted for all persons
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset() → void
Resets the answers already given, for instance when giving another try. Notifies listeners.
toString() String
A string representation of this object.
inherited

Operators

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