Interactive class Null safety

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>
read-only
countScore Score?
final
hashCode int
The hash code for this object. [...]
read-only, inherited
item Item
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
slot Slot?
final, inherited

Methods

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

Operators

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