Future<T> expectMapped<R>(R Function(E e) mapper, dynamic matcher, {String? reason}) => thenChain((o) => o.expectMapped(mapper, matcher, reason: reason) as T);