DashboardItemController<T extends DashboardItem> constructor

DashboardItemController<T extends DashboardItem>({
  1. required List<T> items,
})

You can define items with constructor. But the layout information is only for the session. Changes cannot be handled.

Implementation

DashboardItemController({
  required List<T> items,
})  : _items = items.asMap().map(
            (key, value) => MapEntry(value.identifier, value),
          ),
      itemStorageDelegate = null;