startPath method
Implementation
void startPath(Offset point) {
if (hasActivePath) {
alterPath(point);
return null;
}
onDrawStart?.call();
_activePath = CubicPath(
DateTime.now().millisecondsSinceEpoch,
width,
threshold: threshold,
smoothRatio: smoothRatio,
color: color,
type: type,
)..maxVelocity = velocityRange;
_activePath!.begin(point,
velocity: _paths.isNotEmpty ? _paths.last!._currentVelocity : 0.0);
_paths.add(_activePath);
pageState.add();
}