Skip to content

Clear data #368

@riccardocescon

Description

@riccardocescon

Problem to solve

It would be great to have a function that clears all the data stored, so widgets saved with HomeWidget.renderFlutterWidget to the storage and data saved with HomeWidget.saveWidgetData.
Currently seems there is no way to erase data, it would be usefull when a user is logging out.
The current option is to set the data to null, but still all keys are present even if unecessary

Proposal

Adding a new funtion such as HomeWidget.clear() that erases everything saved to the storage, like no widget have ever been saved

More information

No response

Which Platform would be improved?

No response

Other

  • Are you interested in working on a PR for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions