CommonShortcuts class
A widget which maps the most common shortcuts.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CommonShortcuts
Constructors
- CommonShortcuts({required Widget child, VoidCallback? newCallback, VoidCallback? openCallback, VoidCallback? deleteCallback, VoidCallback? moveUpCallback, VoidCallback? moveDownCallback, VoidCallback? homeCallback, VoidCallback? endCallback, VoidCallback? pageUpCallback, VoidCallback? pageDownCallback, VoidCallback? testCallback, VoidCallback? backspaceCallback, VoidCallback? cancelCallback, String? copyText, Key? key})
-
Create an instance.
const
Properties
- backspaceCallback → VoidCallback?
-
The function to be called with the backspaceShortcut.
final
- cancelCallback → VoidCallback?
-
The function to call when the escape key is pressed.
final
- child → Widget
-
The widget below this one in the tree.
final
- copyText → String?
-
The text to copy with the copyShortcut.
final
- deleteCallback → VoidCallback?
-
The function to call with the deleteShortcut.
final
- endCallback → VoidCallback?
-
The function to call with the moveToEndShortcut.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- homeCallback → VoidCallback?
-
The function to call with the moveToStartShortcut.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- moveDownCallback → VoidCallback?
-
The function to call with the moveDownShortcut.
final
- moveUpCallback → VoidCallback?
-
The function to call with the moveUpShortcut.
final
- newCallback → VoidCallback?
-
The function to call with the newShortcut.
final
- openCallback → VoidCallback?
-
The function to call with the openShortcut.
final
- pageDownCallback → VoidCallback?
-
The function to be called with the pageDownShortcut.
final
- pageUpCallback → VoidCallback?
-
function to call with the pageUpShortcut
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- testCallback → VoidCallback?
-
The function to call with the testShortcut.
final
Methods
-
build(
BuildContext context) → Widget -
Build the widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited