Skip to content

GenTuple2Ops<A, B>

extension GenTuple2Ops<A, B> on Record

Properties

tupled extension no setter

Gen<Record> get tupled

Available on Record, provided by the GenTuple2Ops<A, B> extension

Implementation
dart
Gen<(A, B)> get tupled => $1
    .flatMap((a) => $2.map((b) => (a, b)))
    .withShrinker(Shrinker.tuple2($1.shrinker, $2.shrinker));