fix predicate checks only for keyUp events.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-04-07 05:56:41 +05:30
committed by xsahil03x
parent 05604f8e77
commit 69ec1d8935
2 changed files with 24 additions and 20 deletions
@@ -341,9 +341,9 @@ typedef DownloadedPathCallback = void Function(String? path);
typedef UserTapCallback = void Function(User, Widget?);
/// {@template rawKeyEventPredicate}
/// Callback called to react to a raw key event
/// Callback called to react to a key event
/// {@endtemplate}
typedef RawKeyEventPredicate = bool Function(FocusNode, RawKeyEvent);
typedef KeyEventPredicate = bool Function(FocusNode, KeyEvent);
/// {@template userItemBuilder}
/// Builder used to create a custom [ListUserItem] from a [User]