onTapOutside property

TapRegionCallback? onTapOutside
final

Called when the user taps outside the expanded search TextField.

Passed directly to TextField.onTapOutside. A common use-case is unfocusing the field so the keyboard dismisses when the user taps the page content above the bar:

onTapOutside: (_) => FocusScope.of(context).unfocus(),

Implementation

final TapRegionCallback? onTapOutside;