importPath method
Imports given paths
and alters current signature data.
Implementation
void importPath(List<CubicPath> paths, [Size? bounds]) {
//TODO: check bounds
if (bounds != null) {
if (_areaSize.isEmpty) {
print(
'Signature: Canvas area is not specified yet. Signature can be out of visible bounds or misplaced.');
} else if (_areaSize != bounds) {
print(
'Signature: Canvas area has different size. Signature can be out of visible bounds or misplaced.');
}
}
_paths.addAll(paths);
notifyListeners();
}