Use the public methods on ScribbleNotifier to control the behavior (for example from a button in the UI):
notifier = ScribbleNotifier();
// Set color
notifier.setColor(Colors.black);
// Clear
notifier.clear();
// Undo
notifier.undo();
// Export to Image
notifier.renderImage(pixelRatio: 2.0);
// Line details will be simplified to save space from now on
notifier.setSimplificationFactor(2);
// Simplify the entire existing sketch
notifier.simplify();
// And more ...
Additional information
As mentioned above, the package is still under development, but we already use it in the app we are currently
developing.
Feel free to contribute, or open issues in our GitHub repo.