property_map 0.0.16 copy "property_map: ^0.0.16" to clipboard
property_map: ^0.0.16 copied to clipboard

Dart 1 only

PropertyMap allows you to quickly implement property bags in dart. It consists of 2 main classes: PropertyMap and PropertyList. PropertyMap is a wrapper around Map<String, dynamic>. PropertyList is a [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add property_map

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  property_map: ^0.0.16

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:property_map/property_map.dart';
0
likes
5
pub points
0%
popularity

Publisher

unverified uploader

PropertyMap allows you to quickly implement property bags in dart. It consists of 2 main classes: PropertyMap and PropertyList. PropertyMap is a wrapper around Map<String, dynamic>. PropertyList is a wrapper around List<dynamic>. The benefit of using them is that they can restrict the data that is added to them so it is possible to guarantee serialization, and they convert children Maps and Lists recursively to propertyMaps and PropertyLists. By default, they can only take simple objects (as defined in dart:json) and Serializable objects. The configuration object passed to the constructor allows you to modify this behavior if needed.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

unittest

More

Packages that depend on property_map