GearChoice class

Represents a choice of starting gear for a class.

This is the top level choice - provides one or more options to choose from, where each option is a GearSelection, which is a list of GearOptions.

For example, "choose a gift from your parents" which gives either "your father's sword" or "your mother's mace"

Mixed in types

Constructors

GearChoice({required String key, required String description, required List<GearSelection> selections, List<int> preselect = const [], int? maxSelections})
GearChoice.fromJson(Map<String, dynamic> json)
factory
GearChoice.fromRawJson(String str)
factory

Properties

debugProperties String
no setter
description String
The description of the gear choice. For example, "Choose a gift from your parents".
final
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
key String
This entity's unique key
final
maxSelections int?
The maximum number of selections that can be made, if any.
final
preselect List<int>
The list of selections to preselect (if any).
final
preselectedGearSelections List<GearSelection>
The preselected gear selections, if any.
no setter
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
selections List<GearSelection>
The list of selections available for this gear choice.
final

Methods

copyWith({String? key, String? description, List<GearSelection>? selections, List<int>? preselect, int? maxSelections}) GearChoice
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