Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ObservableList's change not being listened to #109

Open
hydroper opened this issue Jul 20, 2023 · 0 comments
Open

ObservableList's change not being listened to #109

hydroper opened this issue Jul 20, 2023 · 0 comments

Comments

@hydroper
Copy link

Minimal Reproduction

pubspec.yaml:

name: observable_demo

dependencies:
  observable: ^0.24.0

Dart:

import 'package:observable/observable.dart';

void main() {
  var obs = ObservableList.from(["first value"]);
  obs.changes.listen(([value = ""]) {
    print(value);
  });
  obs[0] = "second valuee";
}

Expected Behavior

Print:

second valuee

Current Behavior

Prints nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant