Future expectMappedLater<R>( R Function(T o) mapper, dynamic matcher, { String? reason, }) => thenChain( (o) => pkg_test.expectLater(mapper(o), matcher, reason: reason), );