data_save 0.4.2 copy "data_save: ^0.4.2" to clipboard
data_save: ^0.4.2 copied to clipboard

Platformweb

datasave for flutter and flutter web

0.4.0 #

  • Migrated the web implementation from deprecated dart:html APIs to package:web.
  • Added JavaScript and WebAssembly-compatible platform selection.
  • Safely encode cookie names and values, including Unicode and delimiters.
  • Use host-only cookies with SameSite=Lax and Secure on HTTPS.
  • Detect rejected and oversized cookies instead of failing silently.
  • Return null for missing or invalid typed values consistently.
  • Made DataSave.removeAll() awaitable.
  • Added setLargeString() and getLargeString() using localStorage on web with an in-memory fallback.
  • Added remove() for clearing the same key from both web storage modes and removeAllLarge() for clearing large-string storage.
  • removeAll() now clears both cookies and all localStorage values on web; large-string methods reuse the normal storage on native platforms.
  • Increased the minimum supported Dart SDK to 3.13.

0.3.6 #

  • Improved Flutter and Flutter Web compatibility.

0.0.1 #

  • Initial release.
2
likes
125
points
226
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

datasave for flutter and flutter web

Repository (GitHub)
View/report issues

License

BSL-1.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, shared_preferences, web

More

Packages that depend on data_save