ChipsInput<T> constructor

const ChipsInput<T>({
  1. Key? key,
  2. required List<T> items,
  3. InputDecoration decoration = const InputDecoration(),
  4. TextStyle? style,
  5. StrutStyle? strutStyle,
  6. required Widget chipBuilder(
    1. BuildContext context,
    2. T data
    ),
  7. required ValueChanged<List<T>> onChanged,
  8. ValueChanged<T>? onChipTapped,
  9. ValueChanged<String>? onSubmitted,
  10. ValueChanged<String>? onTextChanged,
  11. bool autofocus = false,
})

Implementation

const ChipsInput(
    {super.key,
    required this.items,
    this.decoration = const InputDecoration(),
    this.style,
    this.strutStyle,
    required this.chipBuilder,
    required this.onChanged,
    this.onChipTapped,
    this.onSubmitted,
    this.onTextChanged,
    this.autofocus = false});