SignaturePathSetup class

Defines the setup parameters for a signature path, including smoothing, velocity, and pressure ratios.

Constructors

SignaturePathSetup.new({double threshold = 3.0, double smoothRatio = 0.65, double velocityRange = 2.0, double pressureRatio = 0.0, Map<String, dynamic>? args})
const
SignaturePathSetup.fromMap(Map<String, dynamic> data)
factory

Properties

args Map<String, dynamic>?
Additional arguments to setup path - typically used with custom {HandSignatureDrawer} Only primitives should be stored in args String, num, List, Map - just structs that are supported with jsonEncode/jsonDecode converter.
final
hashCode int
The hash code for this object.
no setterinherited
pressureRatio double
Ratio between pressure and velocity. 1.0 - only pressure, velocity is ignored 0.0 - only velocity, pressure is ignored 0.5 - balanced pressure and velocity
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smoothRatio double
Ratio of line smoothing. Don't have impact to performance. Values between 0 - 1. 0 - no smoothing, no flattening. 1 - best smoothing, but flattened. Best results are between: 0.5 - 0.85.
final
threshold double
Minimal distance between two control points.
final
velocityRange double
Clamps velocity.
final

Methods

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

Operators

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