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

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 governmentType from the active governmentTypes and from all governmentTypes lists
override
getType(String name) GovernmentType
Returns the corresponding governmentType from all governmentTypes called name
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerType(GovernmentType governmentType) → void
Adds governmentType to the list of all governmentTypes and active governmentTypes
override
toString() String
A string representation of this object.
inherited
unregisterType(GovernmentType governmentType) → void
Removes governmentType only from the active governmentTypes
override

Operators

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