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. EdgeInsetsGeometry? viewBarPadding,
  14. double? headerHeight,
  15. TextStyle? headerTextStyle,
  16. TextStyle? headerHintStyle,
  17. Color? dividerColor,
  18. BoxConstraints? viewConstraints,
  19. EdgeInsetsGeometry? viewPadding,
  20. bool? shrinkWrap,
  21. TextCapitalization? textCapitalization,
  22. ValueChanged<String>? viewOnChanged,
  23. ValueChanged<String>? viewOnSubmitted,
  24. required SearchAnchorChildBuilder builder,
  25. required SuggestionsBuilder suggestionsBuilder,
  26. TextInputAction? textInputAction,
  27. TextInputType? keyboardType,
  28. 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.viewBarPadding,
  this.headerHeight,
  this.headerTextStyle,
  this.headerHintStyle,
  this.dividerColor,
  this.viewConstraints,
  this.viewPadding,
  this.shrinkWrap,
  this.textCapitalization,
  this.viewOnChanged,
  this.viewOnSubmitted,
  required this.builder,
  required this.suggestionsBuilder,
  this.textInputAction,
  this.keyboardType,
  this.enabled = true,
});