PokemonForm class

Annotations
  • @freezed

Constructors

PokemonForm(int id, String name, int order, @JsonKey(name: 'form_order') int formOrder, @JsonKey(name: 'is_default') bool isDefault, @JsonKey(name: 'is_battle_only') bool isBattleOnly, @JsonKey(name: 'is_mega') bool isMega, @JsonKey(name: 'form_name') String formName, NamedAPIResource pokemon, List<PokemonFormType> types, PokemonFormSprites sprites, @JsonKey(name: 'version_group') NamedAPIResource versionGroup, List<Name> names, @JsonKey(name: 'form_names') List<Name> formNames)
const
factory
PokemonForm.fromJson(Json json)
factory

Properties

copyWith → $PokemonFormCopyWith<PokemonForm>
no setterinherited
formName String
The name of this form.
no setterinherited
formNames List<Name>
The form specific form name of this Pokémon form, or empty if the form does not have a specific name.
no setterinherited
formOrder int
The order in which forms should be sorted within a species' forms.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier for this resource.
no setterinherited
isBattleOnly bool
Whether or not this form can only happen during battle.
no setterinherited
isDefault bool
True for exactly one form used as the default for each Pokémon.
no setterinherited
isMega bool
Whether or not this form requires mega evolution.
no setterinherited
name String
The name for this resource.
no setterinherited
names List<Name>
The form specific full name of this Pokémon form, or empty if the form does not have a specific name.
no setterinherited
order int
The order in which forms should be sorted within all forms. Multiple forms may have equal order, in which case they should fall back on sorting by name.
no setterinherited
pokemon NamedAPIResource
The Pokémon that can take on this form.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sprites PokemonFormSprites
A set of sprites used to depict this Pokémon form in the game.
no setterinherited
types List<PokemonFormType>
A list of details showing types this Pokémon form has.
no setterinherited
versionGroup NamedAPIResource
The version group this Pokémon form was introduced in.
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