RotationGestureDetector class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- RotationGestureDetector
Constructors
-
RotationGestureDetector({Key? key, required MapModel mapModel, double thresholdDeg = 10.0, bool locked = false, Widget? resetChild, double? left, double? top, double? right, double? bottom, EdgeInsetsGeometry resetPadding = const EdgeInsets.all(12), bool hideResetWhenZero = true, double zeroEpsilonDeg = 0.5, ValueListenable<
double> ? rotationDeg, bool isRotated()?, double resetToDegrees = 0.0, VoidCallback? onReset, bool wrapResetChildTap = true}) -
const
Properties
- bottom → double?
-
Use Positioned() style placement; null values are ignored.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideResetWhenZero → bool
-
Hide resetChild when map rotation is effectively zero.
final
- isRotated → bool Function()?
-
Fallback: compute "is rotated" on demand (used if rotationDeg is null).
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- left → double?
-
Use Positioned() style placement; null values are ignored.
final
- locked → bool
-
If true, rotation gestures are ignored (pan/zoom unaffected).
final
- mapModel → MapModel
-
final
- onReset → VoidCallback?
-
Optional custom reset handler.
final
- resetChild → Widget?
-
Optional reset control widget.
final
- resetPadding → EdgeInsetsGeometry
-
Padding around the reset control (inside the Positioned area).
final
- resetToDegrees → double
-
Degrees to reset to when tapped. Ignored if onReset is provided.
final
- right → double?
-
Use Positioned() style placement; null values are ignored.
final
-
rotationDeg
→ ValueListenable<
double> ? -
Preferred: listenable rotation in degrees, used to drive visibility.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thresholdDeg → double
-
degrees of twist before we start rotating
final
- top → double?
-
Use Positioned() style placement; null values are ignored.
final
- wrapResetChildTap → bool
-
final
- zeroEpsilonDeg → double
-
Epsilon to consider "not rotated".
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< RotationGestureDetector> -
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, int wrapWidth = 65}) → 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