NiceResourceAllocation constructor
const
NiceResourceAllocation({ - Key? key,
- List<NiceResource> resources = const [],
- List<NiceAllocation> allocations = const [],
- NiceResourceViewMode viewMode = NiceResourceViewMode.week,
- DateTime? startDate,
- bool showUtilization = true,
- bool showLegend = true,
- double overloadThreshold = 100,
- void onAllocationClick(
- String id
)?,
- void onSlotClick(
- String resourceId,
- DateTime date
)?,
- String? groupBy,
- double resourceColumnWidth = 180,
})
Implementation
const NiceResourceAllocation({
super.key,
this.resources = const [],
this.allocations = const [],
this.viewMode = NiceResourceViewMode.week,
this.startDate,
this.showUtilization = true,
this.showLegend = true,
this.overloadThreshold = 100,
this.onAllocationClick,
this.onSlotClick,
this.groupBy,
this.resourceColumnWidth = 180,
});