Persona class Null safety

Stores a Persona's data.

Inheritance
Mixed in types

Constructors

Persona({required String name, required Arcana arcana, required int level, required Map<Elements, Resistance> elements, required Map<String, int> skills, required Map<Stat, int> stats, required bool dlc, required bool special, required bool rare})
const
Persona.fromJson(String name, Map<String, dynamic> json)
factory

Properties

arcana Arcana
final
dlc bool
final
elements Map<Elements, Resistance>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
level int
final
name String
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-only, override
rare bool
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
skills Map<String, int>
final
special bool
final
stats Map<Stat, int>
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited

Methods

compareTo(dynamic other) int
Compares this object to another object. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

operator <(Persona a) bool
operator ==(Object other) bool
The equality operator. [...]
inherited
operator >(Persona a) bool