close method
- BuildContext context,
- T result
Closes the search page and returns to the underlying route.
The value provided for result
is used as the return value of the call
to showSearch that launched the search initially.
Implementation
void close(BuildContext context, T result) {
_currentBody = null;
_focusNode?.unfocus();
Navigator.of(context)
..popUntil((Route<dynamic> route) => route == _route)
..pop(result);
}