backCount method

int backCount(
  1. bool test(
    1. T
    )
)

Implementation

int backCount(bool Function(T) test) {
  int n = 0;
  for (T e in _list.reversed) {
    if (test(e)) {
      n += 1;
    } else {
      return n;
    }
  }
  return n;
}