AbilityPokemon constructor

const AbilityPokemon(
  1. @JsonKey(name: 'is_hidden') bool isHidden,
  2. int slot,
  3. 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;