expectMapped<R> method

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

Implementation

Future<void> expectMapped<R>(R Function(T o) mapper, dynamic matcher,
        {String? reason}) =>
    thenChain((o) => _expect(mapper(o), matcher, reason: reason));