DashboardItemController<T extends DashboardItem> constructor
DashboardItemController<T extends DashboardItem> ({
- 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;