SearchAnchor constructor

const SearchAnchor({
  1. Key? key,
  2. bool? isFullScreen,
  3. SearchController? searchController,
  4. ViewBuilder? viewBuilder,
  5. Widget? viewLeading,
  6. Iterable<Widget>? viewTrailing,
  7. String? viewHintText,
  8. Color? viewBackgroundColor,
  9. double? viewElevation,
  10. Color? viewSurfaceTintColor,
  11. BorderSide? viewSide,
  12. OutlinedBorder? viewShape,
  13. double? headerHeight,
  14. TextStyle? headerTextStyle,
  15. TextStyle? headerHintStyle,
  16. Color? dividerColor,
  17. BoxConstraints? viewConstraints,
  18. TextCapitalization? textCapitalization,
  19. ValueChanged<String>? viewOnChanged,
  20. ValueChanged<String>? viewOnSubmitted,
  21. required SearchAnchorChildBuilder builder,
  22. required SuggestionsBuilder suggestionsBuilder,
  23. TextInputAction? textInputAction,
  24. TextInputType? keyboardType,
  25. bool enabled = true,
})

Creates a const SearchAnchor.

The builder and suggestionsBuilder arguments are required.

Implementation

const SearchAnchor({
  super.key,
  this.isFullScreen,
  this.searchController,
  this.viewBuilder,
  this.viewLeading,
  this.viewTrailing,
  this.viewHintText,
  this.viewBackgroundColor,
  this.viewElevation,
  this.viewSurfaceTintColor,
  this.viewSide,
  this.viewShape,
  this.headerHeight,
  this.headerTextStyle,
  this.headerHintStyle,
  this.dividerColor,
  this.viewConstraints,
  this.textCapitalization,
  this.viewOnChanged,
  this.viewOnSubmitted,
  required this.builder,
  required this.suggestionsBuilder,
  this.textInputAction,
  this.keyboardType,
  this.enabled = true,
});