evaluatePredicateKey function
dynamic
evaluatePredicateKey(
- dynamic predicate,
- dynamic item
Implementation
dynamic evaluatePredicateKey(dynamic predicate, dynamic item) {
if (predicate is Function) return predicate(item);
if (item is Map && predicate is String) return item[predicate];
return predicate;
}