AbilityPokemon constructor
const
AbilityPokemon(
- @JsonKey(name: 'is_hidden') bool isHidden,
- int slot,
- NamedAPIResource pokemon
Implementation
const factory AbilityPokemon(
/// Whether or not this a hidden ability for the referenced Pokémon.
@JsonKey(name: 'is_hidden') bool isHidden,
/// Pokémon have 3 ability 'slots' which hold references to possible abilities they could have.
/// This is the slot of this ability for the referenced pokemon.
int slot,
/// The Pokémon this ability could belong to.
///
/// See also:
///
/// [Pokemon]
NamedAPIResource pokemon,
) = _AbilityPokemon;