Berry class

Annotations
  • @freezed

Constructors

Berry(int id, String name, @JsonKey(name: 'growth_time') int growthTime, @JsonKey(name: 'max_harvest') int maxHarvest, @JsonKey(name: 'natural_gift_power') int naturalGiftPower, int size, int smoothness, @JsonKey(name: 'soil_dryness') int soilDryness, NamedAPIResource firmness, List<BerryFlavorMap> flavors, NamedAPIResource item, @JsonKey(name: 'natural_gift_type') NamedAPIResource naturalGiftType)
const
factory
Berry.fromJson(Json json)
factory

Properties

copyWith → $BerryCopyWith<Berry>
no setterinherited
firmness NamedAPIResource
The firmness of this berry, used in making Pokéblocks or Poffins.
no setterinherited
flavors List<BerryFlavorMap>
A list of references to each flavor a berry can have and the potency of each of those flavors in regard to this berry.
no setterinherited
growthTime int
Time it takes the tree to grow one stage, in hours. Berry trees go through four of these growth stages before they can be picked.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier for this resource.
no setterinherited
item NamedAPIResource
Berries are actually items. This is a reference to the item specific data for this berry.
no setterinherited
maxHarvest int
The maximum number of these berries that can grow on one tree in Generation IV.
no setterinherited
name String
The name for this resource.
no setterinherited
naturalGiftPower int
The power of the move "Natural Gift" when used with this Berry.
no setterinherited
naturalGiftType NamedAPIResource
The type inherited by "Natural Gift" when used with this Berry.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The size of this Berry, in millimeters.
no setterinherited
smoothness int
The smoothness of this Berry, used in making Pokéblocks or Poffins.
no setterinherited
soilDryness int
The speed at which this Berry dries out the soil as it grows. A higher rate means the soil dries more quickly.
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