expectMapped<R> method

T expectMapped<R>(
  1. R mapper(
    1. E e
    ),
  2. dynamic matcher, {
  3. String? reason,
})

Implementation

T expectMapped<R>(R Function(E e) mapper, dynamic matcher, {String? reason}) {
  _expect(mapper(element), matcher, reason: reason);
  return this as T;
}