flutter_session 0.1.0 copy "flutter_session: ^0.1.0" to clipboard
flutter_session: ^0.1.0 copied to clipboard

outdated

Adds session support to Flutter. Works with mobile, web and (hopefully) desktop builds.

flutter_session #

Adds session support to Flutter. Works with mobile, web and (hopefully) desktop builds. (Don't forget to hit the like button if you find the package helpful.)

Write values to the session: #

await FlutterSession().set("token", myJWTToken);

or

var session = FlutterSession();
await session.set("token", myJWTToken);
await session.set("name", "jhourlad");
await session.set("id", 1);
await session.set("price", 10.50);
await session.set("isOK", true);

Read values from the session: #

dynamic token = await FlutterSession().get("token");

Session persists throughout the app's lifetime. (Don't forget to hit the like button if you find the package helpful.)

216
likes
40
pub points
85%
popularity

Publisher

unverified uploader

Adds session support to Flutter. Works with mobile, web and (hopefully) desktop builds.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on flutter_session