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 StatefulWidgetConfirms 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.
| Parameter | Type | Kind | Default |
|---|---|---|---|
ovok | Ovok | required named | |
translations | AuthTranslations | named | defaultAuthTranslations |
onSuccess | VoidCallback? | named | |
onError | void Function(Object)? | named | |
key | Key? | named |
Properties
DeleteAccountButton.ovok
final Ovok ovokThe client used to schedule deletion.
DeleteAccountButton.translations
final AuthTranslations translationsLabels to use for this button and its confirmation dialog.
DeleteAccountButton.onSuccess
final VoidCallback? onSuccessCalled after deletion has been scheduled.
DeleteAccountButton.onError
final void Function(Object)? onErrorCalled when the deletion request fails.
LogoutButton
class LogoutButton extends StatefulWidgetSigns 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.
| Parameter | Type | Kind | Default |
|---|---|---|---|
ovok | Ovok | required named | |
translations | AuthTranslations | named | defaultAuthTranslations |
onSuccess | VoidCallback? | named | |
onError | void Function(Object)? | named | |
key | Key? | named |
Properties
LogoutButton.ovok
final Ovok ovokThe client used to sign out.
LogoutButton.translations
final AuthTranslations translationsLabels to use for this button.
LogoutButton.onSuccess
final VoidCallback? onSuccessCalled after the local session has been cleared.
LogoutButton.onError
final void Function(Object)? onErrorCalled when sign-out fails on the server.
Last updated on