sift 1.0.7 copy "sift: ^1.0.7" to clipboard
sift: ^1.0.7 copied to clipboard

outdated

A lightweight map reading library that can be used in Dart and Flutter projects

Sift #

A lightweight map reading library that can be used in Dart and Flutter projects

Usage #

//reading values that are required - throws exception in case of error try { var age = _sift.readNumberFromMap(_data, 'age'); var address = _sift.readStringFromMap(_data, 'address'); print(age); //prints 21 print(address); //prints 41 Main Drive } on SiftException catch (exception) { print(exception.errorMessage); }

//reading values that are optional by providing a default value var name = _sift.readStringFromMapWithDefaultValue(_data, 'name', 'John Doe'); print(name); //prints John Doe

6
likes
0
pub points
52%
popularity

Publisher

verified publishershoutoutsoftware.com

A lightweight map reading library that can be used in Dart and Flutter projects

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, intl, pedantic

More

Packages that depend on sift