DrivenTouchScaleResolver class
A TouchScaleResolver that provides a fixed scale value for touch scaling.
Can be defined either as a percentage of the original size or as a pixel-based offset from the center of the widget.
- Inheritance
-
- Object
- TouchScaleResolver
- DrivenTouchScaleResolver
Constructors
- DrivenTouchScaleResolver.percent(double _value)
- DrivenTouchScaleResolver.pixels(double _value)
- DrivenTouchScaleResolver.stevens({required double baseIntensity, double exponent = 0.4, double referenceSize = 100.0, double minScale = 0.0, double maxScale = 1.0, double scalingFactor = 0.15})
- Stevens' Power Law: Perceived intensity = k × (stimulus intensity)^n For touch feedback, exponent n ≈ 0.3-0.5 is appropriate.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
Size size) → double -
Calculates the scale to apply based on the intrinsic widget size.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited