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 StatefulWidget

Registers 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.

ParameterTypeKindDefault
ovokOvokrequired named
translationsAuthTranslationsnameddefaultAuthTranslations
onSuccessFuture<void> Function(Session)?named
onInviteFuture<void> Function()?named
onSignInVoidCallback?named
onErrorvoid Function(Object)?named
keyKey?named

Properties

Register.ovok

final Ovok ovok

The client used for registration requests.

Register.translations

final AuthTranslations translations

Labels to use for this form.

Register.onSuccess

final Future<void> Function(Session)? onSuccess

Called after a new session is stored.

Register.onInvite

final Future<void> Function()? onInvite

Called when the server routes this address to a clinician invitation.

Register.onSignIn

final VoidCallback? onSignIn

Called when the user chooses to sign in.

Register.onError

final void Function(Object)? onError

Called when a registration request fails.

Last updated on

On this page