addAction method

void addAction(
  1. CanvasAction action
)

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
}