addModel method

void addModel(
  1. Model model
)

Make sure this UndoManager knows about a Model for which it may receive ChangedEvents when the given Model is changed. The model will also receive notifications about transactions and undo or redo operations.

You should not call this method during a transaction. @param {Model} model A Model that this UndoManager is managing. @see #models @see #removeModel

Implementation

void addModel(_i3.Model model) {
  _i4.callMethod(
    this,
    'addModel',
    [model],
  );
}