PrismChipInput constructor

const PrismChipInput({
  1. Key? key,
  2. required List<String> value,
  3. required ValueChanged<List<String>> onChanged,
  4. String? label,
  5. String? hint,
  6. String? helperText,
  7. String? errorText,
  8. List<String> suggestions = const [],
  9. int? maxChips,
  10. bool allowDuplicates = false,
  11. bool enabled = true,
  12. TextInputAction textInputAction = TextInputAction.done,
  13. Widget chipBuilder(
    1. BuildContext context,
    2. String label,
    3. VoidCallback remove
    )?,
  14. String? validator(
    1. String value
    )?,
  15. Set<String> delimiters = const {',', '\n', ';'},
  16. IconData? leadingIcon,
})

Creates a chip input.

Implementation

const PrismChipInput({
  super.key,
  required this.value,
  required this.onChanged,
  this.label,
  this.hint,
  this.helperText,
  this.errorText,
  this.suggestions = const [],
  this.maxChips,
  this.allowDuplicates = false,
  this.enabled = true,
  this.textInputAction = TextInputAction.done,
  this.chipBuilder,
  this.validator,
  this.delimiters = const {',', '\n', ';'},
  this.leadingIcon,
});