find method

NodeOutput? find(
  1. bool f(
    1. NodeOutput
    )
)

Implementation

NodeOutput? find(bool Function(NodeOutput) f) {
  int idx = this.s.indexWhere(f);
  return idx != -1 ? this.s[idx] : null;
}