Move class

Annotations
  • @freezed

Constructors

Move(int id, String name, int? accuracy, @JsonKey(name: 'effect_chance') int? effectChance, int? pp, int priority, int? power, @JsonKey(name: 'contest_combos') ContestComboSets? contestCombos, @JsonKey(name: 'contest_type') NamedAPIResource? contestType, @JsonKey(name: 'contest_effect') APIResource? contestEffect, @JsonKey(name: 'damage_class') NamedAPIResource damageClass, @JsonKey(name: 'effect_entries') List<VerboseEffect> effectEntries, @JsonKey(name: 'effect_changes') List<AbilityEffectChange> effectChanges, @JsonKey(name: 'learned_by_pokemon') List<NamedAPIResource> learnedByPokemon, @JsonKey(name: 'flavor_text_entries') List<MoveFlavorText> flavorTextEntries, NamedAPIResource generation, List<MachineVersionDetail> machines, MoveMetaData? meta, List<Name> names, @JsonKey(name: 'past_values') List<PastMoveStatValues> pastValues, @JsonKey(name: 'stat_changes') List<MoveStatChange> statChanges, @JsonKey(name: 'super_contest_effect') APIResource? superContestEffect, NamedAPIResource target, NamedAPIResource type)
const
factory
Move.fromJson(Json json)
factory

Properties

accuracy int?
The percent value of how likely this move is to be successful.
no setterinherited
contestCombos ContestComboSets?
A detail of normal and super contest combos that require this move.
no setterinherited
contestEffect APIResource?
The effect the move has when used in a contest.
no setterinherited
contestType NamedAPIResource?
The type of appeal this move gives a Pokémon when used in a contest.
no setterinherited
copyWith → $MoveCopyWith<Move>
no setterinherited
damageClass NamedAPIResource
The type of damage the move inflicts on the target, e.g. physical.
no setterinherited
effectChance int?
The percent value of how likely it is this moves effect will happen.
no setterinherited
effectChanges List<AbilityEffectChange>
The list of previous effects this move has had across version groups of the games.
no setterinherited
effectEntries List<VerboseEffect>
The effect of this move listed in different languages.
no setterinherited
flavorTextEntries List<MoveFlavorText>
The flavor text of this move listed in different languages.
no setterinherited
generation NamedAPIResource
The generation in which this move was introduced.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier for this resource.
no setterinherited
learnedByPokemon List<NamedAPIResource>
List of Pokemon that can learn the move.
no setterinherited
machines List<MachineVersionDetail>
A list of the machines that teach this move.
no setterinherited
meta MoveMetaData?
Metadata about this move
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
pastValues List<PastMoveStatValues>
A list of move resource value changes across version groups of the game.
no setterinherited
power int?
The base power of this move with a value of 0 if it does not have a base power.
no setterinherited
pp int?
Power points. The number of times this move can be used.
no setterinherited
priority int
A value between -8 and 8. Sets the order in which moves are executed during battle. See Bulbapedia for greater detail.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statChanges List<MoveStatChange>
A list of stats this moves effects and how much it effects them
no setterinherited
superContestEffect APIResource?
The effect the move has when used in a super contest.
no setterinherited
target NamedAPIResource
The type of target that will receive the effects of the attack.
no setterinherited
type NamedAPIResource
The elemental type of this move.
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