GovernmentTypeManager class
A class that handles the available governmentTypes and using them
When making a custom governmentType, make sure to register it or else some features might not work
- Inheritance
-
- Object
- Manager<
GovernmentType> - GovernmentTypeManager
Constructors
- GovernmentTypeManager()
-
const
Properties
-
activeTypes
→ List<
GovernmentType> -
Returns all active governmentTypes
no setteroverride
-
allTypes
→ List<
GovernmentType> -
Returns all the governmentTypes
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteType(
GovernmentType governmentType) → void -
Removes
governmentTypefrom the active governmentTypes and from all governmentTypes listsoverride -
getType(
String name) → GovernmentType -
Returns the corresponding governmentType from all governmentTypes called
nameoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerType(
GovernmentType governmentType) → void -
Adds
governmentTypeto the list of all governmentTypes and active governmentTypesoverride -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterType(
GovernmentType governmentType) → void -
Removes
governmentTypeonly from the active governmentTypesoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited