ChatSuggestionSettings constructor

const ChatSuggestionSettings({
  1. Color? backgroundColor,
  2. WidgetStateProperty<Color?>? itemBackgroundColor,
  3. ShapeBorder? shape,
  4. WidgetStateProperty<ShapeBorder?>? itemShape,
  5. WidgetStateProperty<TextStyle?>? textStyle,
  6. EdgeInsetsGeometry padding = const EdgeInsetsDirectional.symmetric(vertical: 5.0),
  7. EdgeInsetsGeometry itemPadding = const EdgeInsets.symmetric(horizontal: 12.0, vertical: 8.0),
  8. Axis orientation = Axis.horizontal,
  9. ChatSuggestionOverflow itemOverflow = ChatSuggestionOverflow.wrap,
  10. ChatSuggestionSelectionType selectionType = ChatSuggestionSelectionType.single,
  11. double runSpacing = 12.0,
  12. double spacing = 16.0,
})

Creates a ChatSuggestionSettings with the given customization options.

Implementation

const ChatSuggestionSettings({
  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,
  ChatSuggestionOverflow itemOverflow = ChatSuggestionOverflow.wrap,
  ChatSuggestionSelectionType selectionType =
      ChatSuggestionSelectionType.single,
  this.runSpacing = 12.0,
  this.spacing = 16.0,
})  : itemOverflow = itemOverflow == ChatSuggestionOverflow.scroll
          ? SuggestionOverflow.scroll
          : SuggestionOverflow.wrap,
      selectionType = selectionType == ChatSuggestionSelectionType.multiple
          ? SuggestionSelectionType.multiple
          : SuggestionSelectionType.single;