PointerTransition class

A widget that applies a set of effects to its child based on the current position of the pointer device.

Inheritance
Available Extensions

Constructors

PointerTransition({Key? key, required Widget child, Alignment origin = Alignment.center, bool useGlobalPointer = false, bool transitionBetweenBounds = true, bool resetOnExitBounds = true, PointerTransitionBuilder? builder, Curve curve = appleEaseInOut, Duration duration = const Duration(milliseconds: 125)})
Creates a new PointerTransition with the given builder, origin, useGlobalPointer, child, curve, and duration.
const

Properties

builder PointerTransitionBuilder?
A function that builds a widget based on the current position of the pointer device.
final
child Widget
The child widget to apply the effects to.
final
curve Curve
The curve of the animation to use when the position of the child is about to reset.
final
duration Duration
The duration of the animation to use when the position of the child is about to reset.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
origin Alignment
Defines where the origin of the pointer should be. If the origin is set to Alignment.center, as the pointer moves away from the center of the screen, the curvedValue value will increase. If the origin is set to Alignment.topLeft, as the pointer moves away from the top left corner of the screen, the curvedValue value will increase.
final
resetOnExitBounds bool
Decides whether this transition should reset the position of the child back to a value of zero when the pointer device is outside the bounds of the widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transitionBetweenBounds bool
Decides whether this transition should transition between when the pointer device is inside the bounds of the widget or outside the bounds of the
final
useGlobalPointer bool
Decides whether this transition calculates the value based on the global position of the pointer device or the local position of the pointer device.
final

Methods

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