DirectionalRotation class
A widget that implicitly rotates its child to the provided angle.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DirectionalRotation
Constructors
- DirectionalRotation({Key? key, required num angle, required Widget child, num scale = 360.0, Curve curve = Curves.linear, Duration duration = const Duration(seconds: 1), bool factorDuration = true, RotationDirection direction = RotationDirection.closest, VoidCallback? onComplete})
-
A widget that implicitly rotates its child to the provided angle.
const
Properties
- angle → num
-
The angle currently applied to the child.
final
- child → Widget
-
The child the rotation is applied to.
final
- curve → Curve
-
The easing curve applied to the rotation animation.
final
- direction → RotationDirection
-
The direction(s) the rotation animation is constrained to or
derived from.
final
- duration → Duration
-
The duration applied to the rotation animation.
final
- factorDuration → bool
-
If
true
, duration will equate to the length of one complete rotation, and will be scaled to the difference between the old angle and new angle when angle is updated. Iffalse
, each rotation, no matter the distance, will last for duration.final - hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onComplete → VoidCallback?
-
A callback called each time the animation completes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → num
-
The size of the scale angle relates to. (Degrees
are scaled to
360
.)final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _DirectionalRotationState -
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