TouchBarScrubber constructor
TouchBarScrubber({
- required List<
TouchBarScrubberItem> children, - OnItemAction? onSelect,
- OnItemAction? onHighlight,
- bool showArrowButtons = false,
- ScrubberSelectionStyle selectedStyle = ScrubberSelectionStyle.none,
- ScrubberSelectionStyle overlayStyle = ScrubberSelectionStyle.none,
- ScrubberMode mode = ScrubberMode.free,
- bool isContinuous = true,
- bool unselectAfterHit = false,
Implementation
TouchBarScrubber({
required List<TouchBarScrubberItem> children,
OnItemAction? onSelect,
OnItemAction? onHighlight,
bool showArrowButtons = false,
ScrubberSelectionStyle selectedStyle = ScrubberSelectionStyle.none,
ScrubberSelectionStyle overlayStyle = ScrubberSelectionStyle.none,
ScrubberMode mode = ScrubberMode.free,
bool isContinuous = true,
bool unselectAfterHit = false,
}) : assert(children.length != 0),
this._selectedStyle = selectedStyle,
this._overlayStyle = overlayStyle,
this._showArrowButtons = showArrowButtons,
this._mode = mode,
this._isContinuous = isContinuous,
this._unselectAfterHit = unselectAfterHit,
super(children: children) {
this.onSelect = onSelect!;
this.onHighlight = onHighlight!;
}