Account actions

Generated reference for ovok_flutter: account actions.

  • Stable unknown
  • Release candidate since 0.1.0-rc.4
  • Development since 0.1.0-dev.25+148a28a

DeleteAccountButton

class DeleteAccountButton extends StatefulWidget

Confirms and schedules account deletion without wiping health data.

Constructors

DeleteAccountButton.new

DeleteAccountButton({
  required Ovok ovok,
  AuthTranslations translations = defaultAuthTranslations,
  VoidCallback? onSuccess,
  void Function(Object)? onError,
  Key? key,
})

Creates a button that schedules deletion after 30 days.

ParameterTypeKindDefault
ovokOvokrequired named
translationsAuthTranslationsnameddefaultAuthTranslations
onSuccessVoidCallback?named
onErrorvoid Function(Object)?named
keyKey?named

Properties

DeleteAccountButton.ovok

final Ovok ovok

The client used to schedule deletion.

DeleteAccountButton.translations

final AuthTranslations translations

Labels to use for this button and its confirmation dialog.

DeleteAccountButton.onSuccess

final VoidCallback? onSuccess

Called after deletion has been scheduled.

DeleteAccountButton.onError

final void Function(Object)? onError

Called when the deletion request fails.

LogoutButton

class LogoutButton extends StatefulWidget

Signs out the current session and clears it from the secure store.

Constructors

LogoutButton.new

LogoutButton({
  required Ovok ovok,
  AuthTranslations translations = defaultAuthTranslations,
  VoidCallback? onSuccess,
  void Function(Object)? onError,
  Key? key,
})

Creates a button that signs out through ovok.

ParameterTypeKindDefault
ovokOvokrequired named
translationsAuthTranslationsnameddefaultAuthTranslations
onSuccessVoidCallback?named
onErrorvoid Function(Object)?named
keyKey?named

Properties

LogoutButton.ovok

final Ovok ovok

The client used to sign out.

LogoutButton.translations

final AuthTranslations translations

Labels to use for this button.

LogoutButton.onSuccess

final VoidCallback? onSuccess

Called after the local session has been cleared.

LogoutButton.onError

final void Function(Object)? onError

Called when sign-out fails on the server.

Last updated on

On this page