Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: packages/observe/lib/src/observable_box.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « packages/observe/lib/src/observable.dart ('k') | packages/observe/lib/src/observable_list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/observe/lib/src/observable_box.dart
diff --git a/packages/observe/lib/src/observable_box.dart b/packages/observe/lib/src/observable_box.dart
deleted file mode 100644
index dfaf7ffb5960607615aa851acea920d9a125115c..0000000000000000000000000000000000000000
--- a/packages/observe/lib/src/observable_box.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library observe.src.observable_box;
-
-import 'package:observe/observe.dart';
-
-// TODO(jmesserly): should the property name be configurable?
-// That would be more convenient.
-/// An observable box that holds a value. Use this if you want to store a single
-/// value. For other cases, it is better to use [ObservableList],
-/// [ObservableMap], or a custom [Observable] implementation based on
-/// [Observable]. The property name for changes is "value".
-class ObservableBox<T> extends ChangeNotifier {
- T _value;
-
- ObservableBox([T initialValue]) : _value = initialValue;
-
- @reflectable T get value => _value;
-
- @reflectable void set value(T newValue) {
- _value = notifyPropertyChange(#value, _value, newValue);
- }
-
- String toString() => '#<$runtimeType value: $value>';
-}
« no previous file with comments | « packages/observe/lib/src/observable.dart ('k') | packages/observe/lib/src/observable_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698