touchBar method
NSTouchBarItem?
touchBar(
- NSTouchBar touchBar$1, {
- required DartNSTouchBarItemIdentifier makeItemForIdentifier,
touchBar:makeItemForIdentifier:
Implementation
NSTouchBarItem? touchBar(
NSTouchBar touchBar$1, {
required DartNSTouchBarItemIdentifier makeItemForIdentifier,
}) {
objc.checkOsVersionInternal(
'NSTextView.touchBar:makeItemForIdentifier:',
iOS: (false, (13, 0, 0)),
);
if (!objc.respondsToSelector(
this.ref.pointer,
_sel_touchBar_makeItemForIdentifier_,
)) {
throw objc.UnimplementedOptionalMethodException(
'NSTextView',
'touchBar:makeItemForIdentifier:',
);
}
final _ret = _objc_msgSend_15qeuct(
this.ref.pointer,
_sel_touchBar_makeItemForIdentifier_,
touchBar$1.ref.pointer,
makeItemForIdentifier.ref.pointer,
);
return _ret.address == 0
? null
: NSTouchBarItem.castFromPointer(_ret, retain: true, release: true);
}