Stat class

Annotations
  • @freezed

Constructors

Stat(int id, String name, @JsonKey(name: 'game_index') int gameIndex, @JsonKey(name: 'is_battle_only') bool isBattleOnly, @JsonKey(name: 'affecting_moves') MoveStatAffectSets affectingMoves, @JsonKey(name: 'affecting_natures') NatureStatAffectSets affectingNatures, List<APIResource> characteristics, @JsonKey(name: 'move_damage_class') NamedAPIResource? moveDamageClass, List<Name> names)
const
factory
Stat.fromJson(Json json)
factory

Properties

affectingMoves MoveStatAffectSets
A detail of moves which affect this stat positively or negatively.
no setterinherited
affectingNatures NatureStatAffectSets
A detail of natures which affect this stat positively or negatively.
no setterinherited
characteristics List<APIResource>
A list of characteristics that are set on a Pokémon when its highest base stat is this stat.
no setterinherited
copyWith → $StatCopyWith<Stat>
no setterinherited
gameIndex int
ID the games use for this stat.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier for this resource.
no setterinherited
isBattleOnly bool
Whether this stat only exists within a battle.
no setterinherited
moveDamageClass NamedAPIResource?
The class of damage this stat is directly related to.
no setterinherited
name String
The name for this resource.
no setterinherited
names List<Name>
The name of this resource listed in different languages.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited