storage_wrapper 1.1.1 copy "storage_wrapper: ^1.1.1" to clipboard
storage_wrapper: ^1.1.1 copied to clipboard

outdated

A wrapper for shared_preferences and flutter_secure_storage that provides an unified api.

Storage Wrapper #

A wrapper for shared_preferences and flutter_secure_storage that provides an unified api.

How it works #

Calling the StorageWrapper.common() constructor will return an instance that saves data in the SharedPreferences using the shared_preferences plugin.

Calling the StorageWrapper.secure() constructor will return an instance that saves data securely using the flutter_secure_storage plugin.

Once you got the instance, you can use the methods:

  • write
  • read
  • delete
  • containsKey

They all take the following parameters:

  • key: a String identifying the key of the value
  • iOptions: a IOSOptions object to specify iOS secure storage accessibility options
  • aOptions: a AndroidOptions object to specify Android secure storage accessibility options

While the AndroidOptions do not seem to be used by flutter_secure_storage, you can find more information about the IOSOptions here.

More docs: #

The package wraps:

1
likes
0
pub points
65%
popularity

Publisher

verified publishermagicleon94.dev

A wrapper for shared_preferences and flutter_secure_storage that provides an unified api.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_secure_storage, shared_preferences

More

Packages that depend on storage_wrapper