DashboardItemController<T extends DashboardItem>.withDelegate constructor
DashboardItemController<T extends DashboardItem>.withDelegate ({
- Duration? timeout,
- required DashboardItemStorageDelegate<
T> ? itemStorageDelegate,
You can create DashboardItemController with an itemStorageDelegate. In init state, item information is brought with the delegate. The necessary functions of the delegate are triggered on all changes.
If the delegate is waiting for a Future to load the items, this will throw
error at the end of the timout
.
Implementation
DashboardItemController.withDelegate(
{Duration? timeout, required this.itemStorageDelegate})
: _timeout = timeout ?? const Duration(seconds: 10);