ChoiceChipInputWidget<T> constructor

const ChoiceChipInputWidget<T>({
  1. Key? key,
  2. String keyPrefix = defaultKeyPrefix,
  3. String? title,
  4. required Set<T> values,
  5. required Set<String> labels,
  6. Set<String>? keys,
  7. required T? selected,
  8. required List<String> textList,
  9. List<TextInputType>? keyboardTypes,
  10. List<List<TextInputFormatter>?>? inputFormattersList,
  11. double textFieldWidth = defaultTextFieldWidth,
  12. TextAlign textFieldTextAlign = defaultTextAlign,
  13. double spacing = defaultSpacing,
  14. bool enabled = true,
  15. bool disableInputs = false,
  16. ChoiceChipInputChanged<T>? onStateChanged,
})

Implementation

const ChoiceChipInputWidget({
  super.key,
  this.keyPrefix = defaultKeyPrefix,
  this.title,
  required this.values,
  required this.labels,
  this.keys,
  required this.selected,
  required this.textList,
  this.keyboardTypes,
  this.inputFormattersList,
  this.textFieldWidth = defaultTextFieldWidth,
  this.textFieldTextAlign = defaultTextAlign,
  this.spacing = defaultSpacing,
  this.enabled = true,
  this.disableInputs = false,
  this.onStateChanged,
})  : assert(labels.length == values.length),
      assert(keys == null || keys.length == values.length),
      assert(textList.length == values.length),
      assert(keyboardTypes == null || keyboardTypes.length == values.length),
      assert(inputFormattersList == null ||
          inputFormattersList.length == values.length);