GearOption class

Represents a single option in a GearSelection. Contains an item, and amount to receive.

Mixed in types

Constructors

GearOption({required String key, required Item item, required double amount})
GearOption.fromJson(Map<String, dynamic> json)
factory
GearOption.fromRawJson(String str)
factory

Properties

amount double
The amount of the item to receive.
final
debugProperties String
no setter
displayName String
This entity's display name, as the user would see it
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
item Item
The item to receive.
final
key String
The key of the gear option.
final
reference EntityReference
Get a reference to this entity, which can be used to look it up in a repository.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? key, Item? item, double? amount}) GearOption
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toRawJson() String
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override