Persona class
Stores a Persona's data.
- 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.
no setterinherited
- level → int
-
final
- name → String
-
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- rare → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
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.no setterinherited
Methods
-
compareTo(
dynamic other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String - A string representation of this object.
Operators
-
operator <(
Persona a) → bool -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
Persona a) → bool