PersonaService class
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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited