SignUpViewModelFactory

fun SignUpViewModelFactory(    authenticationService: AuthenticationService,     passwordManager: PasswordManager,     credentialsValidationUseCase: CredentialsValidationUseCase,     dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main))

Parameters

authenticationService

the authentication service that is used in the viewModel.

dispatcherProvider

the dispatcher provider that is to be used in the viewModel. By default, it uses an instance of StandardDispatchersProvider. The io dispatcher is changed to Dispatchers.Main because, the data layer ensures that all suspend functions are main safe.