TouchPoint class

Constructors

TouchPoint({required num x, required num y, num? radiusX, num? radiusY, num? rotationAngle, num? force, num? tangentialPressure, num? tiltX, num? tiltY, int? twist, num? id})
TouchPoint.fromJson(Map<String, dynamic> json)
factory

Properties

force num?
Force (default: 1.0).
final
hashCode int
The hash code for this object.
no setterinherited
id num?
Identifier used to track touch sources between events, must be unique within an event.
final
radiusX num?
X radius of the touch area (default: 1.0).
final
radiusY num?
Y radius of the touch area (default: 1.0).
final
rotationAngle num?
Rotation angle (default: 0.0).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tangentialPressure num?
The normalized tangential pressure, which has a range of -1,1 (default: 0).
final
tiltX num?
The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range -90,90, a positive tiltX is to the right (default: 0)
final
tiltY num?
The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range -90,90, a positive tiltY is towards the user (default: 0).
final
twist int?
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range 0,359 (default: 0).
final
x num
X coordinate of the event relative to the main frame's viewport in CSS pixels.
final
y num
Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited