ms_map_utils 0.1.0 copy "ms_map_utils: ^0.1.0" to clipboard
ms_map_utils: ^0.1.0 copied to clipboard

outdated

A dart package that implement a lot of util functions for a Map

Overview #

A simple lib to incremease Map with usefull functions

Whats MS_Map_Utils do #

Add usefull functions to map:

  • trim trim all Strings in a map it's recursive
  • compact remove all MapEntries thats values is null it's recursive too

Usage #

Just import lib and use extensions, call the functions to starts work:

import 'package:ms_map_utils/ms_map_utils.dart';

Map itsAMap = {'key1':null,'key2':'         just a String withs extras spaces en start and end            '};
itsAMap.compact(); // Output: {'key2':'         just a String withs extras spaces en start and end            '}
itsAMap.trim(); // Output: {'key2':'just a String withs extras spaces en start and end'}
20
likes
0
pub points
69%
popularity

Publisher

verified publishermarcussoftware.info

A dart package that implement a lot of util functions for a Map

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on ms_map_utils