PersonaService class Null safety
A class that calculates the fusion of two Personas.
Constructors
- PersonaService(PersonaRepository _repository)
- Constructor for the PersonaService Uses the PersonaRepository to get the Personas
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
fuse(
Persona persona1, Persona persona2) → Persona? - Fuses two Personas together.
-
getFusionsFrom(
Persona persona) → List< Fusion> -
Returns a List of
Fusion
s can be fused frompersona
-
getFusionsTo(
Persona persona) → List< Fusion> -
Returns a List of
Fusion
s that fusespersona
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited