state 1.0.3 copy "state: ^1.0.3" to clipboard
state: ^1.0.3 copied to clipboard

outdatedDart 1 only

An observable map

example/main.dart

import 'package:state/state.dart';

main() {

  var state = new State.fromMap({
    'key': 'initial value'
  });

  state.listen((String key, newValue, oldValue) {

    print('$key was changed from $oldValue to $newValue');
  });

  state['key'] = 'new value';
}
0
likes
25
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

An observable map

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on state