HandSignatureControl constructor

HandSignatureControl({
  1. double threshold = 3.0,
  2. double smoothRatio = 0.65,
  3. double velocityRange = 2.0,
})

Controls input from HandSignature and creates smooth signature path. threshold minimal distance between two points. smoothRatio smoothing ratio of curved parts. velocityRange controls velocity speed and dampening between points (only Shape and Arc drawing types using this property to control line width). aka how fast si signature drawn..

Implementation

HandSignatureControl({
  this.threshold = 3.0,
  this.smoothRatio = 0.65,
  this.velocityRange = 2.0,
})  : assert(threshold > 0.0),
      assert(smoothRatio > 0.0 && smoothRatio <= 1.0),
      assert(velocityRange > 0.0);