| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * *Warning*: this library is experimental, and APIs are subject to change. | 6 * Support for observing changes in model-view architectures. |
| 7 * |
| 8 * **Warning:** This library is experimental, and APIs are subject to change. |
| 7 * | 9 * |
| 8 * This library is used to observe changes to [Observable] types. It also | 10 * This library is used to observe changes to [Observable] types. It also |
| 9 * has helpers to make implementing and using [Observable] objects easy. | 11 * has helpers to make implementing and using [Observable] objects easy. |
| 10 * | 12 * |
| 11 * You can provide an observable object in two ways. The simplest way is to | 13 * You can provide an observable object in two ways. The simplest way is to |
| 12 * use dirty checking to discover changes automatically: | 14 * use dirty checking to discover changes automatically: |
| 13 * | 15 * |
| 14 * class Monster extends Unit with ObservableMixin { | 16 * class Monster extends Unit with ObservableMixin { |
| 15 * @observable int health = 100; | 17 * @observable int health = 100; |
| 16 * | 18 * |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 part 'src/change_notifier.dart'; | 86 part 'src/change_notifier.dart'; |
| 85 part 'src/change_record.dart'; | 87 part 'src/change_record.dart'; |
| 86 part 'src/compound_binding.dart'; | 88 part 'src/compound_binding.dart'; |
| 87 part 'src/list_path_observer.dart'; | 89 part 'src/list_path_observer.dart'; |
| 88 part 'src/observable.dart'; | 90 part 'src/observable.dart'; |
| 89 part 'src/observable_box.dart'; | 91 part 'src/observable_box.dart'; |
| 90 part 'src/observable_list.dart'; | 92 part 'src/observable_list.dart'; |
| 91 part 'src/observable_map.dart'; | 93 part 'src/observable_map.dart'; |
| 92 part 'src/path_observer.dart'; | 94 part 'src/path_observer.dart'; |
| 93 part 'src/to_observable.dart'; | 95 part 'src/to_observable.dart'; |
| OLD | NEW |