ChipsInput<T> constructor
const
ChipsInput<T> ({
- Key? key,
- required List<
T> items, - InputDecoration decoration = const InputDecoration(),
- TextStyle? style,
- StrutStyle? strutStyle,
- required Widget chipBuilder(
- BuildContext context,
- T data
- required ValueChanged<
List< onChanged,T> > - ValueChanged<
T> ? onChipTapped, - ValueChanged<
String> ? onSubmitted, - ValueChanged<
String> ? onTextChanged, - 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});