StreamAutocompleteOptions<T extends Object> constructor

const StreamAutocompleteOptions<T extends Object>({
  1. Key? key,
  2. Color? color,
  3. double elevation = 2,
  4. EdgeInsetsGeometry margin = const EdgeInsets.all(8),
  5. Clip clipBehavior = Clip.hardEdge,
  6. required Iterable<T> options,
  7. double? maxHeight,
  8. required Widget optionBuilder(
    1. BuildContext context,
    2. T option
    ),
  9. WidgetBuilder? headerBuilder,
  10. ShapeBorder shape = _kDefaultStreamAutocompleteOptionsShape,
})

Creates a StreamAutocompleteOptions widget.

Implementation

const StreamAutocompleteOptions({
  super.key,
  this.color,
  this.elevation = 2,
  this.margin = const EdgeInsets.all(8),
  this.clipBehavior = Clip.hardEdge,
  required this.options,
  this.maxHeight,
  required this.optionBuilder,
  this.headerBuilder,
  this.shape = _kDefaultStreamAutocompleteOptionsShape,
});