untilK<TSuper extends Object, TSub extends TSuper> method
Counterpart to until<TSuper, TSub> on the K (Entity-keyed) track.
Waits exact-match on typeEntity (K is exact-only by design — see
untilSuperK) and casts the resolved value to TSub. The compile-time
TSub extends TSuper bound mirrors the plain API; at runtime it is a
straight downcast through .transf<TSub>(). Requires
enableUntilExactlyK: true at registration time.
Implementation
@pragma('vm:prefer-inline')
Resolvable<TSub> untilK<TSuper extends Object, TSub extends TSuper>(
Entity typeEntity, {
Entity groupEntity = const DefaultEntity(),
bool traverse = true,
}) {
return untilExactlyK<TSuper>(
typeEntity,
groupEntity: groupEntity,
traverse: traverse,
).transf<TSub>();
}