setTouchBarItem method
Change the data of the TouchBarItem of the given id and type
with the new data provided by dataChanges.
The dataChanges must contain all the data that need to be changed.
Do not provide data unless it must be changed.
The dataChanges must be in the format:
{
'propertyOneName': newValue,
// others properties that must be changed
}
Implementation
@override
Future<void> setTouchBarItem({
int? id,
String? type,
Map<String, dynamic>? dataChanges,
}) {
return _channel.invokeMethod('setTouchBarItem', {
...dataChanges!,
'id': id,
'type': type,
});
}