TouchBarButton class
- Inheritance
-
- Object
- AbstractTouchBarItem
- TouchBarItem
- TouchBarButton
- Mixed in types
Constructors
- TouchBarButton({String? label, String? accessibilityLabel, Color? backgroundColor, TouchBarImage? icon, ImagePosition? iconPosition, VoidCallback? onClick})
-
Creates a new TouchBarButton item with the given
label
,accessibilityLabel
,backgroundColor
,icon
,iconPosition
andonClick
.
Properties
- accessibilityLabel ↔ String?
-
getter/setter pair
- backgroundColor ↔ Color?
-
getter/setter pair
-
children
→ List<
TouchBarItem> ? -
The children property is forbbiden in this.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon ↔ TouchBarImage?
-
getter/setter pair
- iconPosition ↔ ImagePosition?
-
getter/setter pair
- id → int
-
The unique sequential identifier of this.
finalinherited
- label ↔ String?
-
getter/setter pair
-
methods
→ Map<
String, Function> -
Stores all the methods of this.
finalinherited
- onClick ← VoidCallback?
-
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Name of the touch bar item type
that will be used to inform the specific platform implementation
which TouchBarItem must be rendered/updated.
This is important because the platform channel communication
is performed through subset of the primitive types.
See https://flutter.dev/docs/development/platform-integration/platform-channels#codec.
no setteroverride
Methods
-
callMethod(
String name, dynamic arguments) → bool -
Searches the method named
name
in this and execute it.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
Convert all the TouchBarItem data to a Map that will be used
in the platform channel communication.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateProperty(
String name, {dynamic newValue}) → void -
Updates the property named
name
with anewValue
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited