index property
Index of the item being worn.
Implementation
late int index = widget.initialIndex.clamp(0, max(0, widget.items.length - 1));
Index of the item being worn.
late int index = widget.initialIndex.clamp(0, max(0, widget.items.length - 1));