FavoriteItems<T> typedef Null safety

FavoriteItems<T> = List<T> Function(List<T> items)

items are the original item from items or/and onFind

Implementation

typedef List<T> FavoriteItems<T>(List<T> items);