Verb class

Note: the library currently focuses on french. In the future a separate library specifically for french might be created next to a more generic one Represents a verb. It consists of the infinitive, the translation in the language of the client app, the complete conjugation of the simplePresentIndicative (present), the simplePastIndicative and the language (isoLanguage) of the verb that is being practiced

Mixed in types
Implementers

Constructors

Verb(String infinitive, String translation, Conjugation simplePresentIndicative, String isoLanguage)
Verb.fromAllTensesAndModes(String infinitive, String translation, List<Conjugation> conjugations, String isoLanguage)
Verb.fromMoreTensesAndModes(String infinitive, String translation, Conjugation simplePresentIndicative, Conjugation simplePastIndicative, String isoLanguage)

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
indicativeConjugations Map<String, Conjugation>
no setter
infinitive String
no setter
isoLanguage String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
simpleFutureIndicative List<String>
no setter
simplePastIndicative List<String>?
getter/setter pair
simplePresentIndicative List<String>
getter/setter pair
translation String
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
conjugation(String mode, String tense) Conjugation?
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
hasSimplePastIndicative() bool
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
toString() String
A string representation of this object.
inherited

Operators

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