evaluatePredicateKey function

dynamic evaluatePredicateKey(
  1. dynamic predicate,
  2. 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;
}