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 Fusions can be fused from persona
getFusionsTo(Persona persona) List<Fusion>
Returns a List of Fusions that fuses persona
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