FastButtonGroup<T> constructor

const FastButtonGroup<T>({
  1. Key? key,
  2. required void callback(
    1. List<T>
    ),
  3. required List<T> values,
  4. required List<T> initial,
  5. bool multiple = true,
  6. Widget itemBuilder(
    1. T
    )?,
  7. bool updateSelectionOnInitialChange = true,
  8. bool allowEmpty = true,
})

FastButtonGroup

example:

FastButtonGroup<String>(
  callback: (v) {},
  values: const ['Test 1', 'Test 2', 'Test 3', 'Test 4'],
  initial: const [],
),

Implementation

const FastButtonGroup({
  super.key,
  required this.callback,
  required this.values,
  required this.initial,
  this.multiple = true,
  this.itemBuilder,
  this.updateSelectionOnInitialChange = true,
  this.allowEmpty = true,
});