Type class
- Annotations
-
- @freezed
Constructors
-
Type(int id, String name, @JsonKey(name: 'damage_relations') TypeRelations damageRelations, @JsonKey(name: 'past_damage_relations') List<
TypeRelationsPast> pastDamageRelations, @JsonKey(name: 'game_indices') List<GenerationGameIndex> gameIndices, NamedAPIResource generation, @JsonKey(name: 'move_damage_class') NamedAPIResource? moveDamageClass, List<Name> names, List<TypePokemon> pokemon, List<NamedAPIResource> moves) -
constfactory
- Type.fromJson(Json json)
-
factory
Properties
-
copyWith
→ $TypeCopyWith<
Type> -
no setterinherited
- damageRelations → TypeRelations
-
A detail of how effective this type is toward others and vice versa.
no setterinherited
-
gameIndices
→ List<
GenerationGameIndex> -
A list of game indices relevent to this item by generation.
no setterinherited
- generation → NamedAPIResource
-
The generation this type was introduced in.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The identifier for this resource.
no setterinherited
- moveDamageClass → NamedAPIResource?
-
The class of damage inflicted by this type.
no setterinherited
-
moves
→ List<
NamedAPIResource> -
A list of moves that have this type.
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
-
pastDamageRelations
→ List<
TypeRelationsPast> -
A list of details of how effective this type was toward others and
vice versa in previous generations
no setterinherited
-
pokemon
→ List<
TypePokemon> -
A list of details of Pokémon that have this type.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
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