PersonaRepository class Null safety

Holds all Personas that are available in the game. DLC Personas added according to the selectedDlcPersonas in constructor.

Constructors

PersonaRepository({List<DLCPersona> selectedDlcPersonas = const []})
Creates a new instance of PersonaRepository with the selectedDlcPersonas

Properties

getRarePersonas List<Persona>
Returns rare Personas
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
personas List<Persona>
Returns a list of all personas.
read-only
rarePersonae List
Returns a list of all rare personas.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getPersonaByName(String name) Persona
Returns a Persona by name
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
searchPersonas(String searchTerm) List<Persona>
Searches for Personas by searchTerm
toString() String
A string representation of this object. [...]
inherited
updatePersonaList(List<DLCPersona> selectedDlcPersonas) → void
Updates the personas using the selectedDlcPersonas

Operators

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

Static Properties

allPersonas Map
final
rarePersonas List
final