Interactive class

With this type you can literally do everything. In its core it is just an clickable item in your Gui. You can optionally specify a set of Widgets(actions) that should run when the item has been clicked. Additionally you can also give it a countScore that modifies the count of the item(Great for option gui, sliders, displaying data, etc). The Item is required here.

Inheritance

Constructors

Interactive(Item item, {Slot? slot, List<Widget>? actions, Score? countScore})
With this type you can literally do everything. In its core it is just an clickable item in your Gui. You can optionally specify a set of Widgets(actions) that should run when the item has been clicked. Additionally you can also give it a countScore that modifies the count of the item(Great for option gui, sliders, displaying data, etc). The Item is required here.

Properties

actions List<Widget>
no setter
countScore → Score?
final
hashCode int
The hash code for this object.
no setterinherited
item → Item
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slot → Slot?
finalinherited

Methods

applyWhenPossible({Item? item, Slot? slot, List<Widget>? actions, Score? count}) Interactive
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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