TouchBarScrubber constructor

TouchBarScrubber({
  1. required List<TouchBarScrubberItem> children,
  2. OnItemAction? onSelect,
  3. OnItemAction? onHighlight,
  4. bool showArrowButtons = false,
  5. ScrubberSelectionStyle selectedStyle = ScrubberSelectionStyle.none,
  6. ScrubberSelectionStyle overlayStyle = ScrubberSelectionStyle.none,
  7. ScrubberMode mode = ScrubberMode.free,
  8. bool isContinuous = true,
  9. 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!;
}