ValueAccessor and PropertyMap changes #19
Labels
enhancement
New feature or request
refactoring
🗒️ attributes
Related to the code package "attributes"
Changes on ValueAccessor:
package:attributes/values.dart
Counted
any morebool existsNull(K key);
, was previouslyhasNull
bool existsNonNull(K key);
num getNum(K key, {num? min, num? max});
num
type atkey
.getInt
andgetDouble
properties available too.getNum
when accessor might have either int or double property value.num? tryNum(K key, {num? min, num? max});
DateTime getTimeUTC(K key, {DateTime Function(Object?)? parse});
parse
to define app specific conversion.DateTime? tryTimeUTC(K key, {DateTime Function(Object?)? parse});
parse
to define app specific conversion.Changes on ValueAccessorMixin
package:attributes/values.dart
Exception
not onlyFormatException
Example of ValueAccessorMixin method:
New base interface for property collections (maps and lists)
Changes on PropertyMap:
ValueAccessor<String>
directlyProperties<String>
PropertyMap.from(Map<String, dynamic> source)
Also new PropertyList that extends
Properties<int>
The text was updated successfully, but these errors were encountered: