TouchSurfaceBuilderCommand class

A command in a TouchSurfaceBuilder.

Constructors

TouchSurfaceBuilderCommand({required String title, required GameShortcutsShortcut shortcut, Widget? child, ContextCallback? onStart, ContextCallback? onStop, bool controlKey = false, bool altKey = false, bool shiftKey = false})
Create an instance.
const

Properties

altKey bool
Whether the alt key must be used to trigger this shortcut.
finalinherited
child Widget?
The child widget to show.
final
controlKey bool
Whether the control key must be used to trigger this shortcut.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
onStart → ContextCallback?
The function to call when this key is activated.
finalinherited
onStop → ContextCallback?
The function to call when this key is deactivated.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shiftKey bool
Whether the shift key must be used to trigger this shortcut.
finalinherited
shortcut → GameShortcutsShortcut
The physical key which will activate this shortcut.
finalinherited
title String
The title of this shortcut.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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