lastWhereOrAdd method

V lastWhereOrAdd(
  1. bool test(
    1. V element
    ),
  2. OrAdd<V> orAdd
)

Returns the last element that satisfies the test if there isn't one add a new one and return it.

Implementation

V lastWhereOrAdd(bool Function(V element) test, fn.OrAdd<V> orAdd) =>
    fn.lastWhereOrAdd(this, test, orAdd);