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. required SearchAnchorChildBuilder builder,
  18. required SuggestionsBuilder suggestionsBuilder}
)

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,
  required this.builder,
  required this.suggestionsBuilder,
});