map_stream 1.0.0-alpha.4 copy "map_stream: ^1.0.0-alpha.4" to clipboard
map_stream: ^1.0.0-alpha.4 copied to clipboard

An implementation of the Dart Map object, adding functionality to listen to streams of entry changes.

example/main.dart

import 'package:map_stream/map_stream.dart';

void main() {
  final exampleMap = MapStream.from({'counter1': 0});

  exampleMap.listen((mapUpdate) {
    print('\nListener ${mapUpdate.toString()}');
  });

  exampleMap['counter2'] = 10;

  exampleMap.updateAll((key, value) {
    return value != null ? value + 5 : null;
  });

  print(exampleMap.toString());
}
0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

An implementation of the Dart Map object, adding functionality to listen to streams of entry changes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on map_stream