prf 1.3.8
prf: ^1.3.8 copied to clipboard
Easily save and load values locally. Effortless local persistence with type safety and zero boilerplate. Just get, set, and go.
Changelog #
All notable changes to the prf package will be documented in this file.
1.3.8 #
- Added example file for pub.dev to showcase package usage.
1.3.7 #
- Finished setting up for publishing, this package was private for too long in my repositoriee, hope you enjoy it!
1.3.6 #
- Added omprehensive documentation comments for the entire library.
- Improved API reference with examples and usage notes.
- Enhanced dartdoc coverage for all public classes and methods.
- Better explanation of advanced features and type support.
1.3.5 #
- Improved
PrfDateTime
encoding reliability by enforcing endian order consistency. - Fixed internal handling of corrupted
base64
data forPrfBytes
.
1.3.4 #
Added #
PrfJson<T>
class for storing JSON-serializable objects usingjsonEncode
/jsonDecode
.- Graceful fallback when decoding invalid JSON or mismatched types.
1.3.3 #
Added #
PrfDateTime
using base64-encoded 64-bit integers to persistDateTime
values with millisecond precision.- Integrated with
PrfEncoded
to reduce redundant logic.
1.3.2 #
Added #
PrfEncoded<TSource, TStore>
for reusable value transformation between domain objects and SharedPreferences-compatible types.- Supports encoding formats like JSON, binary, and base64.
1.3.1 #
Improved #
- Added
_exists
check insidegetValue()
to allow fallback todefaultValue
if key is missing. - Improved caching logic to avoid unnecessary SharedPreferences reads.
1.3.0 #
1.2.0 #
Added #
PrfBytes
with transparent base64 storage ofUint8List
.- Full support for all native SharedPreferences types:
PrfInt
PrfDouble
PrfBool
PrfString
PrfStringList
Improved #
- Unified all variable types using delegate-based constructors.
- Internal logic now handles nullability consistently and efficiently.