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. TextStyle? headerTextStyle,
  14. TextStyle? headerHintStyle,
  15. Color? dividerColor,
  16. BoxConstraints? viewConstraints,
  17. TextCapitalization? textCapitalization,
  18. ValueChanged<String>? viewOnChanged,
  19. ValueChanged<String>? viewOnSubmitted,
  20. required SearchAnchorChildBuilder builder,
  21. required SuggestionsBuilder suggestionsBuilder,
  22. TextInputAction? textInputAction,
  23. TextInputType? keyboardType}
)

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.headerTextStyle,
  this.headerHintStyle,
  this.dividerColor,
  this.viewConstraints,
  this.textCapitalization,
  this.viewOnChanged,
  this.viewOnSubmitted,
  required this.builder,
  required this.suggestionsBuilder,
  this.textInputAction,
  this.keyboardType,
});