get method

TestInfo<St>? get(
  1. Type actionType, [
  2. int n = 1
])

Returns the n-th info corresponding to the end of the given action type Note: N == 1 is the first one.

Implementation

TestInfo<St>? get(Type actionType, [int n = 1]) => _info.firstWhereOrNull(
      (info) {
        var ifFound = (info.type == actionType);
        if (ifFound) n--;
        return ifFound && (n == 0);
      },
    );