Interactive constructor
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.
Implementation
Interactive(
this.item, {
Slot? slot,
List<Widget>? actions,
this.countScore,
}) : _actions = actions,
super(slot);