SegmentCheck<V> constructor

SegmentCheck<V>({
  1. required List<V> items,
  2. required Widget toButtonLabel(
    1. V value
    ),
  3. required Set<V> checkedValues,
  4. bool multiCheck = true,
  5. bool allowEmpty = true,
  6. Widget? label,
  7. bool spaceBetween = true,
  8. LabelPosition labelPosition = LabelPosition.leftCenter,
  9. void onChange(
    1. Set<V> checkedItems
    )?,
})

Implementation

SegmentCheck({
  required super.items,
  required super.toButtonLabel,
  required this.checkedValues,
  this.multiCheck = true,
  this.allowEmpty = true,
  super.label,
  super.spaceBetween = true,
  super.labelPosition = LabelPosition.leftCenter,
  this.onChange,
})  : assert(items.isNotEmpty),
      super();