sweet_cookie 0.0.1
sweet_cookie: ^0.0.1 copied to clipboard
A sweet way to manage cookies in Flutter web.
A sweet way to manage cookies in Flutter web.
Installing #
-
Add dependencies to
pubspec.yamldependencies: hequest: git: url: https://github.com/teixeirazeus/sweet_cookie -
Run pub get.
flutter pub get -
Import package.
import 'package:sweet_cookie/sweet_cookie.dart';
Using #
Save a cookie:
SweetCookie.set('name', 'value');
Get a cookie:
SweetCookie.get('name');
Delete a cookie:
SweetCookie.delete('name');
Delete all cookies:
SweetCookie.clear();
Developer #
- Thiago da Silva Teixeira
License #
Released under the MIT License.
Contributing #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.