TouchBarPlatform class abstract

The interface that implementations of touch_bar must implement.

Platform implementations should extend this class rather than implement it as touch_bar does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added TouchBarPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • TouchBarPlatform
Implementers

Constructors

TouchBarPlatform()
Constructs a TouchBarPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setTouchBar(AbstractTouchBar touchBar) Future<void>
Sets the touchBar for the current window. Specifying null clears the touch bar.
setTouchBarItem({int? id, String? type, Map<String, dynamic>? dataChanges}) → void
Change the data of the TouchBarItem of the given id and type with the new data provided by dataChanges.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance TouchBarPlatform
The default instance of TouchBarPlatform to use.
getter/setter pair