invokeWhere method

List invokeWhere(
  1. bool where(
    1. dynamic
    )
)

Invokes some actions by the given where key condition, and returns the list of returned results.

Implementation

List<dynamic> invokeWhere(bool Function(dynamic) where) {
  var keys = _actions.keys.where((k) => where(k));
  var rs = <dynamic>[];
  for (var key in keys) {
    rs.add(invoke<dynamic>(key));
  }
  return rs;
}