FAutocompleteItem.item constructor

FAutocompleteItem.item({
  1. required String value,
  2. FItemStyleDelta style,
  3. bool? enabled,
  4. Widget? prefix,
  5. Widget? title,
  6. Widget? subtitle,
  7. Widget? suffix,
  8. Key? key,
})

Creates a FAutocompleteItem with a custom title and value.

This is identical to FAutocompleteItem.new. It provides consistency with other FAutocompleteItemMixin members when using dot-shorthands.

For even more control over the item's appearance, use FAutocompleteItem.raw.

Implementation

factory FAutocompleteItem.item({
  required String value,
  FItemStyleDelta style,
  bool? enabled,
  Widget? prefix,
  Widget? title,
  Widget? subtitle,
  Widget? suffix,
  Key? key,
}) = FAutocompleteItem;