MouseOnHoverEvent class

A widget that adds animated cursor effects to its child within a mouse region.

Inheritance

Constructors

MouseOnHoverEvent({Key? key, required Widget child, BoxDecoration? decoration, Size? size, Widget? mouseChild, MouseCursor? onHoverMouseCursor, List<MouseStyle>? customOnHoverMouseStylesStack, Curve? animationCurve, Duration? animationDuration, double? opacity, Alignment? alignment, Duration? latency})
Creates an MouseOnHoverEvent with the specified child.
const

Properties

alignment Alignment?
final
animationCurve Curve?
final
animationDuration Duration?
final
child Widget
The widget that is wrapped with the animated cursor mouse region.
final
customOnHoverMouseStylesStack List<MouseStyle>?
final
decoration BoxDecoration?
By adding decoration it will override the styles of onHoverMouseStylesStack. if you used decoration to add color it will replace the color only not the whole decoration.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
latency Duration?
By adding latency it will override the latency duration of onHoverMouseStylesStack.
final
mouseChild Widget?
You can add child to the mouse style but you can't add MouseStyle().
final
onHoverMouseCursor MouseCursor?
final
opacity double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size?
By adding size it will override the main size of onHoverMouseStylesStack.
final

Methods

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