id property

String get id

Optional id for the tree item that has to be unique across tree. The id is used to preserve the selection and expansion state of the tree item.

If not provided, an id is generated using the tree item's label. Note that when labels change, ids will change and that selection and expansion state cannot be kept stable anymore.

Implementation

_i2.String get id => _i5.getProperty(
      this,
      'id',
    );
set id (String value)

Implementation

set id(_i2.String value) {
  _i5.setProperty(
    this,
    'id',
    value,
  );
}