feedList<T> static method
- dynamic value
Tolerant of the container, not only of its elements: a cast in front of
whereType throws on "donation_amounts": 5, and the news parser answers
any throw with an empty feed for every user.
Implementation
static List<T>? feedList<T>(dynamic value) => value is Iterable<dynamic>
? value.whereType<T>().toList(growable: false)
: null;