Item class
- Annotations
-
- @freezed
Constructors
-
Item(int id, String name, int cost, @JsonKey(name: 'fling_power') int? flingPower, @JsonKey(name: 'fling_effect') NamedAPIResource? flingEffect, List<
NamedAPIResource> attributes, NamedAPIResource category, @JsonKey(name: 'effect_entries') List<VerboseEffect> effectEntries, @JsonKey(name: 'flavor_text_entries') List<VersionGroupFlavorText> flavorTextEntries, @JsonKey(name: 'game_indices') List<GenerationGameIndex> gameIndices, List<Name> names, ItemSprites sprites, @JsonKey(name: 'held_by_pokemon') List<ItemHolderPokemon> heldByPokemon, @JsonKey(name: 'baby_trigger_for') APIResource? babyTriggerFor, List<MachineVersionDetail> machines) -
constfactory
- Item.fromJson(Json json)
-
factory
Properties
-
attributes
→ List<
NamedAPIResource> -
A list of attributes this item has.
no setterinherited
- babyTriggerFor → APIResource?
-
An evolution chain this item requires to produce a bay during mating.
no setterinherited
- category → NamedAPIResource
-
The category of items this item falls into.
no setterinherited
-
copyWith
→ $ItemCopyWith<
Item> -
no setterinherited
- cost → int
-
The price of this item in stores.
no setterinherited
-
effectEntries
→ List<
VerboseEffect> -
The effect of this ability listed in different languages.
no setterinherited
-
flavorTextEntries
→ List<
VersionGroupFlavorText> -
The flavor text of this ability listed in different languages.
no setterinherited
- flingEffect → NamedAPIResource?
-
The effect of the move Fling when used with this item.
no setterinherited
- flingPower → int?
-
The power of the move Fling when used with this item.
no setterinherited
-
gameIndices
→ List<
GenerationGameIndex> -
A list of game indices relevent to this item by generation.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
heldByPokemon
→ List<
ItemHolderPokemon> -
A list of Pokémon that might be found in the wild holding this item
no setterinherited
- id → int
-
The identifier for this resource.
no setterinherited
-
machines
→ List<
MachineVersionDetail> -
A list of the machines related to this item.
no setterinherited
- name → String
-
The name for this resource.
no setterinherited
-
names
→ List<
Name> -
The name of this item listed in different languages.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sprites → ItemSprites
-
A set of sprites used to depict this item in the game.
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