ArnaBaseWidget class
The base StatefulWidget class for many other widgets.
See also:
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ArnaBaseWidget
Constructors
- ArnaBaseWidget({Key? key, required ArnaBaseWidgetBuilder builder, VoidCallback? onPressed, VoidCallback? onLongPress, GestureDragStartCallback? onHorizontalDragStart, GestureDragEndCallback? onHorizontalDragEnd, GestureDragStartCallback? onVerticalDragStart, GestureDragEndCallback? onVerticalDragEnd, String? tooltipMessage, FocusNode? focusNode, bool isFocusable = true, bool showAnimation = true, bool autofocus = false, MouseCursor cursor = MouseCursor.defer, String? semanticLabel, bool enableFeedback = true})
-
Creates a base widget.
const
Properties
- autofocus → bool
-
Whether this widget should focus itself if nothing else is already focused.
final
- builder → ArnaBaseWidgetBuilder
-
The base builder for widgets.
final
- cursor → MouseCursor
-
The cursor for a mouse pointer when it enters or is hovering over the widget.
final
- enableFeedback → bool
-
Whether detected gestures should provide acoustic and/or haptic feedback.
final
- focusNode → FocusNode?
-
The focus node of the widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFocusable → bool
-
Whether this widget is focusable or not.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onHorizontalDragEnd → GestureDragEndCallback?
-
A pointer that was previously in contact with the screen and moving horizontally is no longer in contact with the
screen and was moving at a specific velocity when it stopped contacting the screen.
final
- onHorizontalDragStart → GestureDragStartCallback?
-
A pointer has contacted the screen and has begun to move horizontally.
final
- onLongPress → VoidCallback?
-
The callback that is called when a widget is long-pressed.
final
- onPressed → VoidCallback?
-
The callback that is called when a widget is tapped.
final
- onVerticalDragEnd → GestureDragEndCallback?
-
A pointer that was previously in contact with the screen and moving vertically is no longer in contact with the
screen and was moving at a specific velocity when it stopped contacting the screen.
final
- onVerticalDragStart → GestureDragStartCallback?
-
A pointer has contacted the screen and has begun to move vertically.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
The semantic label of the widget.
final
- showAnimation → bool
-
Whether to show animation or not.
final
- tooltipMessage → String?
-
The tooltip message of the widget.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ArnaBaseWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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}) → 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