SearchRouteConfig class

Configuration for search routes with go_router.

This class provides pre-configured routes that can be integrated into your app's router. It supports both modal search (using SearchDelegate) and full-screen search with deep-link support.

Constructors

SearchRouteConfig.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createSearchRoute({String? path, Widget builder(BuildContext, GoRouterState)?}) GoRoute
Creates a GoRoute for the search screen.
createSearchShellRoute({required Widget builder(BuildContext, GoRouterState, Widget), List<RouteBase>? routes}) ShellRoute
Creates a ShellRoute for search with a persistent navigation bar.
Navigates to the search screen using go_router.
showSearchModal(BuildContext context, AppWideSearchDelegate delegate) Future<SearchItem?>
Shows the search delegate as a modal.

Constants

queryParam → const String
Query parameter name for search query.
searchPath → const String
Path for the search screen.