itemTemplateMap property

Map<String, Panel>? get itemTemplateMap

Gets or sets a Map mapping template names to Panels. One of these Panels is copied for each item data that is in the #itemArray. Replacing this map will automatically rebuild all of the elements in this Panel.

By default this property is null. All values in the Map must be Panels but not Parts.

If you modify this Map, by replacing a Panel or by adding or removing a map entry, you need to explicitly call #rebuildItemElements afterwards.

GraphObject#copy when copying a panel will share the #itemTemplateMap between the original panel and the copied panel.

Implementation

_i3.Map<_i2.String, _i3.Panel>? get itemTemplateMap => _i4.getProperty(
      this,
      'itemTemplateMap',
    );
set itemTemplateMap (Map<String, Panel>? value)

Implementation

set itemTemplateMap(_i3.Map<_i2.String, _i3.Panel>? value) {
  _i4.setProperty(
    this,
    'itemTemplateMap',
    value ?? _i5.undefined,
  );
}