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

List implementations that notify when they're modified.

notifying_list #

A Dart package providing list implementations that notify when they're modified.

Features #

  • A callback-based notifying list (CallbackNotifyingList)
  • A stream-based notifying list (StreamNotifyingList)

Getting started #

Import the library:

import 'package:notifying_list/notifying_list.dart';

Usage #

final callbackList = CallbackNotifyingList<num>(() => print('Modified!'));
callbackList.add(0); // 'Modified!'

final streamList = StreamNotifyingList()
  ..stream.forEach(
    (currentList) => print('Modified! Current list: $currentList'),
  );
streamList.add(0); // 'Modified! Current list: [0]'
1
likes
130
pub points
0%
popularity

Publisher

verified publisherhacker1024.tk

List implementations that notify when they're modified.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

collection, meta

More

Packages that depend on notifying_list