candidateListTouchBarItem$2 method

void candidateListTouchBarItem$2(
  1. NSCandidateListTouchBarItem anItem, {
  2. required DartNSInteger changeSelectionFromCandidateAtIndex,
  3. required DartNSInteger toIndex,
})

candidateListTouchBarItem:changeSelectionFromCandidateAtIndex:toIndex:

Implementation

void candidateListTouchBarItem$2(
  NSCandidateListTouchBarItem anItem, {
  required DartNSInteger changeSelectionFromCandidateAtIndex,
  required DartNSInteger toIndex,
}) {
  objc.checkOsVersionInternal(
    'NSTextView.candidateListTouchBarItem:changeSelectionFromCandidateAtIndex:toIndex:',
    iOS: (true, null),
    macOS: (false, (10, 12, 2)),
  );
  if (!objc.respondsToSelector(
    this.ref.pointer,
    _sel_candidateListTouchBarItem_changeSelectionFromCandidateAtIndex_toIndex_,
  )) {
    throw objc.UnimplementedOptionalMethodException(
      'NSTextView',
      'candidateListTouchBarItem:changeSelectionFromCandidateAtIndex:toIndex:',
    );
  }
  _objc_msgSend_fjiqqb(
    this.ref.pointer,
    _sel_candidateListTouchBarItem_changeSelectionFromCandidateAtIndex_toIndex_,
    anItem.ref.pointer,
    changeSelectionFromCandidateAtIndex,
    toIndex,
  );
}