isReadOnly property

bool isReadOnly

Gets or sets whether this model may be modified, such as adding nodes. By default this value is false. Setting the #nodeDataArray to something that is not a true Array of Objects will cause this to be set to true.

Model methods and property setters do not heed this property. It is up to code that uses a model to check this property when it might want to prevent changes to the model.

Implementation

_i2.bool get isReadOnly => _i4.getProperty(
      this,
      'isReadOnly',
    );
void isReadOnly=(bool value)

Implementation

set isReadOnly(_i2.bool value) {
  _i4.setProperty(
    this,
    'isReadOnly',
    value,
  );
}