notifying_list

Last updated:

0 purchases

notifying_list Image
notifying_list Images
Add to Cart

Description:

notifying list

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';
copied to clipboard
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]'
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.