Nature class
- Annotations
-
- @freezed
Constructors
-
Nature(int id, String name, @JsonKey(name: 'decreased_stat') NamedAPIResource? decreasedStat, @JsonKey(name: 'increased_stat') NamedAPIResource? increasedStat, @JsonKey(name: 'hates_flavor') NamedAPIResource? hatesFlavor, @JsonKey(name: 'likes_flavor') NamedAPIResource? likesFlavor, @JsonKey(name: 'pokeathlon_stat_changes') List<
NatureStatChange> pokeathlonStatChanges, @JsonKey(name: 'move_battle_style_preferences') List<MoveBattleStylePreference> moveBattleStylePreferences, List<Name> names) -
constfactory
- Nature.fromJson(Json json)
-
factory
Properties
-
copyWith
→ $NatureCopyWith<
Nature> -
no setterinherited
- decreasedStat → NamedAPIResource?
-
The stat decreased by 10% in Pokémon with this nature.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hatesFlavor → NamedAPIResource?
-
The flavor hated by Pokémon with this nature.
no setterinherited
- id → int
-
The identifier for this resource.
no setterinherited
- increasedStat → NamedAPIResource?
-
The stat increased by 10% in Pokémon with this nature.
no setterinherited
- likesFlavor → NamedAPIResource?
-
The flavor liked by Pokémon with this nature.
no setterinherited
-
moveBattleStylePreferences
→ List<
MoveBattleStylePreference> -
A list of battle styles and how likely a Pokémon with this nature is
to use them in the Battle Palace or Battle Tent.
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
-
pokeathlonStatChanges
→ List<
NatureStatChange> -
A list of Pokéathlon stats this nature effects and how much it effects them.
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