addAction method
Implementation
void addAction(CanvasAction action) {
_actions.add(action);
// Must trigger repaint after action
canvas.repaintNotifier.notifyListeners(); // ignore: invalid_use_of_visible_for_testing_member, invalid_use_of_protected_member
}