MoonBaseControl class

Inheritance

Constructors

MoonBaseControl({Key? key, bool autofocus = false, bool absorbDragEvents = false, bool isFocusable = true, bool ensureMinimalTouchTargetSize = false, bool semanticTypeIsButton = false, bool propagateGesturesToChild = false, bool showFocusEffect = true, bool showPulseEffect = false, bool showPulseEffectJiggle = true, bool showScaleEffect = false, BorderRadiusGeometry? borderRadius = BorderRadius.zero, Color? backgroundColor, Color? focusEffectColor, Color? pulseEffectColor, double? disabledOpacityValue, double minTouchTargetSize = 40.0, double? focusEffectExtent, double? pulseEffectExtent, double? scaleEffectScalar, Duration? focusEffectDuration, Duration? pulseEffectDuration, Duration? scaleEffectDuration, Curve? focusEffectCurve, Curve? pulseEffectCurve, Curve? scaleEffectCurve, FocusNode? focusNode, MoonBaseControlBuilder? builder, MouseCursor cursor = SystemMouseCursors.click, String? semanticLabel, void onFocus(bool)?, void onHover(bool)?, VoidCallback? onTap, VoidCallback? onLongPress, Widget? child})
Creates a Moon Design base control.
const

Properties

absorbDragEvents bool
Whether to absorb the drag events of the base control.
final
autofocus bool
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
final
backgroundColor Color?
The background color of the base control.
final
borderRadius BorderRadiusGeometry?
The border radius of the base control.
final
builder MoonBaseControlBuilder?
A builder to build a custom child for the base control. Cannot be used in conjunction with the child property, one of them must be null.
final
child Widget?
The child of the base control. Cannot be used in conjunction with the builder property, one of them must be null.
final
cursor MouseCursor
The mouse cursor of the base control.
final
disabledOpacityValue double?
The opacity value of the base control when disabled.
final
ensureMinimalTouchTargetSize bool
Whether to ensure a minimum touch target size for the base control.
final
focusEffectColor Color?
The color of the base control focus effect.
final
focusEffectCurve Curve?
The curve of the focus effect.
final
focusEffectDuration Duration?
The duration of the focus effect.
final
focusEffectExtent double?
The extent of the base control focus effect.
final
focusNode FocusNode?
An optional focus node to use as the focus node for this widget.
final
hashCode int
The hash code for this object.
no setterinherited
isFocusable bool
Whether the base control is focusable.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minTouchTargetSize double
The minimum size of the base control touch target.
final
onFocus → (void Function(bool)?)
The callback that is called when the base control focus state changes.
final
onHover → (void Function(bool)?)
The callback that is called when the base control hover state changes.
final
onLongPress VoidCallback?
The callback that is called when the base control is long-pressed.
final
onTap VoidCallback?
The callback that is called when the base control is tapped or pressed.
final
propagateGesturesToChild bool
Whether to propagate gestures to the child of the base control.
final
pulseEffectColor Color?
The color of the base control pulse effect.
final
pulseEffectCurve Curve?
The curve of the pulse effect.
final
pulseEffectDuration Duration?
The duration of the pulse effect.
final
pulseEffectExtent double?
The extent of the base control pulse effect.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleEffectCurve Curve?
The curve of the scale effect.
final
scaleEffectDuration Duration?
The duration of the scale effect.
final
scaleEffectScalar double?
The degree of scaling applied during the scale effect.
final
semanticLabel String?
The semantic label for the base control.
final
semanticTypeIsButton bool
Whether the semantic type of the base control is button.
final
showFocusEffect bool
Whether the base control shows a focus effect.
final
showPulseEffect bool
Whether the base control shows a pulse effect.
final
showPulseEffectJiggle bool
Whether the base control shows a jiggle during the pulse effect.
final
showScaleEffect bool
Whether the base control shows a scale effect.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MoonBaseControl>
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