open

fun open(route: String, args: Any? = null): Result<Unit>

Opens new window for the route and adds it to the routes stack. Content of the windows is based on what was declared in WindowsNavigation.

Return

Result.success if window was opened successfully or Result.failure with an error:

IllegalArgumentException if window for the route is already opened.

When there was an error, error opened windows do not change.

Parameters

route

for which new window will be opened