backWithResult

Posts result back to the previous screen and immediately pops the current screen.

The result is stored in the NavEaseController instance that owns this back stack, so multiple independent navigation hosts never cross-contaminate each other's results.

The map key is KClass.simpleName — supported on all KMP targets including JS and WASM (unlike KClass.qualifiedName which is unavailable in Kotlin/JS). KSP generates result class names that are unique per screen route (e.g. LibraryDetailResult, SplashResult), so simple names are collision-free in practice.

Throws

if result is an anonymous or local class (simpleName is null).