The extension function of package androidx.navigation have plusAssign, therefore it is equivalent of +=
but in my code it doesn't find the plusAssign.
class MyNavHostFragment: NavHostFragment() {
override fun createFragmentNavigator(): Navigator<out FragmentNavigator.Destination> {
navController.navigatorProvider += DialogFragmentNavigator(childFragmentManager)
return super.createFragmentNavigator()
}
}
©️ matpag