beforeHook property
The hook to be invoked right before callback is called. Useful for performing validation, or length check before listing suggestions. Return false to stop getting suggestion and hide the suggestion list.
Implementation
final bool Function(String text)? beforeHook;