AssistSuggestionSettings constructor
const
AssistSuggestionSettings({
- Color? backgroundColor,
- WidgetStateProperty<
Color?> ? itemBackgroundColor, - ShapeBorder? shape,
- WidgetStateProperty<
ShapeBorder?> ? itemShape, - WidgetStateProperty<
TextStyle?> ? textStyle, - EdgeInsetsGeometry padding = const EdgeInsetsDirectional.symmetric(vertical: 5.0),
- EdgeInsetsGeometry itemPadding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
- Axis orientation = Axis.horizontal,
- AssistSuggestionOverflow itemOverflow = AssistSuggestionOverflow.wrap,
- AssistSuggestionSelectionType selectionType = AssistSuggestionSelectionType.single,
- double runSpacing = 12.0,
- double spacing = 16.0,
Implementation
const AssistSuggestionSettings({
this.backgroundColor,
this.itemBackgroundColor,
this.shape,
this.itemShape,
this.textStyle,
this.padding = const EdgeInsetsDirectional.symmetric(vertical: 5.0),
this.itemPadding =
const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
this.orientation = Axis.horizontal,
AssistSuggestionOverflow itemOverflow = AssistSuggestionOverflow.wrap,
AssistSuggestionSelectionType selectionType =
AssistSuggestionSelectionType.single,
this.runSpacing = 12.0,
this.spacing = 16.0,
}) : itemOverflow = itemOverflow == AssistSuggestionOverflow.wrap
? SuggestionOverflow.wrap
: SuggestionOverflow.scroll,
selectionType = selectionType == AssistSuggestionSelectionType.single
? SuggestionSelectionType.single
: SuggestionSelectionType.multiple;