PokemonAbility class

Annotations
  • @freezed

Constructors

PokemonAbility(@JsonKey(name: 'is_hidden') bool isHidden, int slot, NamedAPIResource ability)
const
factory
PokemonAbility.fromJson(Json json)
factory

Properties

ability NamedAPIResource
The ability the Pokémon may have.
no setterinherited
copyWith → $PokemonAbilityCopyWith<PokemonAbility>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isHidden bool
Whether or not this is a hidden ability.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slot int
The slot this ability occupies in this Pokémon species.
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