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.

example/notifying_list_example.dart

// ignore_for_file: avoid_print

import 'package:notifying_list/notifying_list.dart';

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

  final streamList = StreamNotifyingList()
    ..stream.forEach(
      (currentList) => print('Modified! Current list: $currentList'),
    );
  streamList.add(0);
}
copied to clipboard
1
likes
160
points
24
downloads

Publisher

verified publisherhacker1024.tk

Weekly Downloads

2024.09.16 - 2025.03.31

List implementations that notify when they're modified.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

collection, meta

More

Packages that depend on notifying_list