Generation class
- Annotations
-
- @freezed
Constructors
-
Generation(int id, String name, List<
NamedAPIResource> abilities, List<Name> names, @JsonKey(name: 'main_region') NamedAPIResource mainRegion, List<NamedAPIResource> moves, @JsonKey(name: 'pokemon_species') List<NamedAPIResource> pokemonSpecies, List<NamedAPIResource> types, @JsonKey(name: 'version_groups') List<NamedAPIResource> versionGroups) -
constfactory
- Generation.fromJson(Json json)
-
factory
Properties
-
abilities
→ List<
NamedAPIResource> -
A list of abilities that were introduced in this generation.
no setterinherited
-
copyWith
→ $GenerationCopyWith<
Generation> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The identifier for this resource.
no setterinherited
- mainRegion → NamedAPIResource
-
The main region travelled in this generation.
no setterinherited
-
moves
→ List<
NamedAPIResource> -
A list of moves that were introduced in this generation.
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
-
pokemonSpecies
→ List<
NamedAPIResource> -
A list of Pokémon species that were introduced in this generation.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ List<
NamedAPIResource> -
A list of types that were introduced in this generation.
no setterinherited
-
versionGroups
→ List<
NamedAPIResource> -
A list of version groups that were introduced in this generation.
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