items property

  1. @Input()
set items (ObservableList<MenuItemAffix> items)

Observable list of affix items.

Implementation

@Input()
set items(ObservableList<MenuItemAffix> items) {
  _itemChangeStreamSub?.cancel();

  _itemChangeStreamSub = items.listChanges.listen((change) {
    _updateVisibleItems(change);
    _cdRef.markForCheck();
  });

  _initializeItems(items.whereType<BaseMenuItemAffixModel>());
}