Web Storage Engine for redurx_persist
.
Saves to localStorage
.
final persistor = Persistor<AppState>(
// ...
storage: WebStorage(),
);
You can pass a key argument to WebStorage
to set the key for localStorage
.
Please file feature requests and bugs at the issue tracker.
0.1.0
- 2019-02-050.8.0
- 2018-11-270.8.0-rc.0
- 2018-11-06redux_persist
(make match versions).0.4.2
- 2018-03-140.4.1
- 2018-03-100.4.0
- 2018-03-10Add this to your package's pubspec.yaml file:
dependencies:
redurx_persist_web: ^0.9.0
You can install packages from the command line:
with pub:
$ pub get
Alternatively, your editor might support pub get
.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:redurx_persist_web/redurx_persist_web.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
0.9.0 | Feb 6, 2019 |
|
|
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
0
|
Health:
Code health derived from static analysis.
[more]
|
100
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
88
|
Overall:
Weighted score of the above.
[more]
|
48
|
We analyzed this package on Feb 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: web
Primary library:
package:redurx_persist_web/redurx_persist_web.dart
with components:html
,io
.
Maintain an example. (-10 points)
Create a short demo in the example/
directory to show how to use this package.
Common filename patterns include main.dart
, example.dart
, and redurx_persist_web.dart
. Packages with multiple examples should provide example/README.md
.
For more information see the pub package layout conventions.
The package description is too short. (-2 points)
Add more detail to the description
field of pubspec.yaml
. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=1.24.0 <3.0.0 | ||
redurx_persist | ^0.9.0 | 0.9.0 | |
Transitive dependencies | |||
meta | 1.1.7 | ||
redurx | 1.1.1 | ||
rxdart | 0.20.0 | ||
synchronized | 1.5.3+2 | 2.0.2+1 |