fix(ui): use a predicate instead of a key

This commit is contained in:
Salvatore Giordano
2022-10-31 12:22:56 +01:00
parent d814d5b0a3
commit 64e41475d9
3 changed files with 46 additions and 41 deletions
@@ -340,6 +340,11 @@ typedef DownloadedPathCallback = void Function(String? path);
/// {@endtemplate}
typedef UserTapCallback = void Function(User, Widget?);
/// {@template rawKeyEventPredicate}
/// Callback called to react to a raw key event
/// {@endtemplate}
typedef RawKeyEventPredicate = bool Function(FocusNode, RawKeyEvent);
/// {@template userItemBuilder}
/// Builder used to create a custom [ListUserItem] from a [User]
/// {@endtemplate}