Ability class

Annotations
  • @freezed

Constructors

Ability(int id, String name, @JsonKey(name: 'is_main_series') bool isMainSeries, NamedAPIResource generation, List<Name> names, @JsonKey(name: 'effect_entries') List<VerboseEffect> effectEntries, @JsonKey(name: 'effect_changes') List<AbilityEffectChange> effectChanges, @JsonKey(name: 'flavor_text_entries') List<AbilityFlavorText> flavorTextEntries, List<AbilityPokemon> pokemon)
const
factory
Ability.fromJson(Json json)
factory

Properties

copyWith → $AbilityCopyWith<Ability>
no setterinherited
effectChanges List<AbilityEffectChange>
The list of previous effects this ability has had across version groups.
no setterinherited
effectEntries List<VerboseEffect>
The effect of this ability listed in different languages.
no setterinherited
flavorTextEntries List<AbilityFlavorText>
The flavor text of this ability listed in different languages.
no setterinherited
generation NamedAPIResource
The generation this ability originated in.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier for this resource.
no setterinherited
isMainSeries bool
Whether or not this ability originated in the main series of the video games.
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
pokemon List<AbilityPokemon>
A list of Pokémon that could potentially have this ability.
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