Register
Generated reference for ovok_flutter: register.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.25+148a28a
Register
class Register extends StatefulWidgetRegisters a patient account and handles clinician-invitation responses.
Constructors
Register.new
Register({
required Ovok ovok,
AuthTranslations translations = defaultAuthTranslations,
Future<void> Function(Session)? onSuccess,
Future<void> Function()? onInvite,
VoidCallback? onSignIn,
void Function(Object)? onError,
Key? key,
})Creates a patient registration form.
| Parameter | Type | Kind | Default |
|---|---|---|---|
ovok | Ovok | required named | |
translations | AuthTranslations | named | defaultAuthTranslations |
onSuccess | Future<void> Function(Session)? | named | |
onInvite | Future<void> Function()? | named | |
onSignIn | VoidCallback? | named | |
onError | void Function(Object)? | named | |
key | Key? | named |
Properties
Register.ovok
final Ovok ovokThe client used for registration requests.
Register.translations
final AuthTranslations translationsLabels to use for this form.
Register.onSuccess
final Future<void> Function(Session)? onSuccessCalled after a new session is stored.
Register.onInvite
final Future<void> Function()? onInviteCalled when the server routes this address to a clinician invitation.
Register.onSignIn
final VoidCallback? onSignInCalled when the user chooses to sign in.
Register.onError
final void Function(Object)? onErrorCalled when a registration request fails.
Last updated on