SignUpScreenViewModel

class SignUpScreenViewModel(signUpUser: SignUpUser, validateUserName: ValidateUserName, validateUserEmail: ValidateUserEmail, validateUserPassword: ValidateUserPassword, router: Router) : ViewModel

View Model of the sign up screen

Constructors

Link copied to clipboard
constructor(signUpUser: SignUpUser, validateUserName: ValidateUserName, validateUserEmail: ValidateUserEmail, validateUserPassword: ValidateUserPassword, router: Router)

Functions

Link copied to clipboard
Link copied to clipboard
fun setEmail(email: String)

Sets the email to use for signing up the user with the submit method

Link copied to clipboard
fun setName(name: String)

Sets the name to use for signing up the user with the submit method

Link copied to clipboard
fun setPassword(password: String)

Sets the password to use for signing up the user with the submit method

Link copied to clipboard
fun submit()

Submits the login form using the name, email and password provided with setName, setEmail and setPassword.

Properties

Link copied to clipboard
val alertState: StateFlow<AppAlertState>

Current state of UI alerts

Link copied to clipboard
val uiState: StateFlow<SignUpUiState>

Current state of the UI