gg_value 1.3.6+2 gg_value: ^1.3.6+2 copied to clipboard
GgValue allows managing a value in a dart application. It provides a stream, a flag preventing too many updates, and a custom transform and a comparison function.
Change Log #
1.3.6+2 #
sync
andunsync
to sync multiple values with each other.
1.2.0 #
reset
can be called to set value back to seed
1.1.0 #
GgValue.stream.map
was added.- In many cases, consumers of
GgValue
should only read but not write. To enforce this,GgReadOnlyValue
is introduced. - Instead of
Stream<T>
,GgValue<T>
returns aGgValueStream<T>
, which offers direct access to the last set value. GgValue.stream.map
was added.- Added
set jsonDecodedValue
to assign values decoded from json - Added
get jsonDecodedValue
to assign values decoded from json - Renamed
toString
constructor parameter intostringify
. - Added
toString()
method. - Added optional
name
constructor parameter - String processing is working for dynamic types also
- Fixed: Once
dispose
was called, instances ofGgValue
will not emit any updates anymore.
1.0.2 #
- When used with custom types, no
parse
andtoString
function needs to be specified. An exception will by thrown onlystringValue
is used.
1.0.1 #
- Parse an generate bool strings
- Updated documentation
- Provided example
1.0.0 #
- Parse strings into GgValue
- Turn GgValue into strings
0.0.9+4 #
- Moved source code to https://github.com/inlavigo/gg_value
0.0.9+2 #
- Fixed dart package conventions.
0.0.9+1 #
- Initial version.