map_operators 2.0.0 icon indicating copy to clipboard operation
map_operators: ^2.0.0 copied to clipboard

More comfortable syntax for Map type

More comfortable syntax for Map type #

Usage #

A simple usage example:

import 'package:map_operators/map_operators.dart';

void main() {
  var m = {'myKey': 'myVal'};

  // Alternative for m['myKey']!=null:
  print(m&'myKey'); // prints true.

  // Alternative for m['myKey']==null:
  print(m^'notExistsKey'); // prints true

  // Alternative for key access operator []:
  print(m/'myKey'); // prints myVal
}
3
likes
120
pub points
0%
popularity

Publisher

unverified uploader

More comfortable syntax for Map type

Homepage

Documentation

API reference

License

Icon for licenses.unknown (LICENSE)

More

Packages that depend on map_operators