NiceResourceAllocation constructor

const NiceResourceAllocation({
  1. Key? key,
  2. List<NiceResource> resources = const [],
  3. List<NiceAllocation> allocations = const [],
  4. NiceResourceViewMode viewMode = NiceResourceViewMode.week,
  5. DateTime? startDate,
  6. bool showUtilization = true,
  7. bool showLegend = true,
  8. double overloadThreshold = 100,
  9. void onAllocationClick(
    1. String id
    )?,
  10. void onSlotClick(
    1. String resourceId,
    2. DateTime date
    )?,
  11. String? groupBy,
  12. 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,
});