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