setTouchBar method

  1. @override
Future<void> setTouchBar(
  1. AbstractTouchBar touchBar
)
override

Sets the touchBar for the current window. Specifying null clears the touch bar.

Implementation

@override
Future<void> setTouchBar(AbstractTouchBar touchBar) async {
  _channel.invokeMethod('setTouchBar', touchBar.toMap());
  _channel.setMethodCallHandler((call) async {
    touchBar.callMethod(call.method, call.arguments);
  });

  return null;
}