| 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 library barback.asset_node; | 5 library barback.asset_node; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'asset.dart'; | 9 import 'asset.dart'; |
| 10 import 'asset_id.dart'; | 10 import 'asset_id.dart'; |
| 11 import 'errors.dart'; | 11 import 'errors.dart'; |
| 12 import 'phase.dart'; | |
| 13 import 'transform_node.dart'; | 12 import 'transform_node.dart'; |
| 14 | 13 |
| 15 /// Describes the current state of an asset as part of a transformation graph. | 14 /// Describes the current state of an asset as part of a transformation graph. |
| 16 /// | 15 /// |
| 17 /// An asset node can be in one of three states (see [AssetState]). It provides | 16 /// An asset node can be in one of three states (see [AssetState]). It provides |
| 18 /// an [onStateChange] stream that emits an event whenever it changes state. | 17 /// an [onStateChange] stream that emits an event whenever it changes state. |
| 19 /// | 18 /// |
| 20 /// Asset nodes are controlled using [AssetNodeController]s. | 19 /// Asset nodes are controlled using [AssetNodeController]s. |
| 21 class AssetNode { | 20 class AssetNode { |
| 22 /// The id of the asset that this node represents. | 21 /// The id of the asset that this node represents. |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 191 |
| 193 /// Whether this state is [AssetState.DIRTY]. | 192 /// Whether this state is [AssetState.DIRTY]. |
| 194 bool get isDirty => this == AssetState.DIRTY; | 193 bool get isDirty => this == AssetState.DIRTY; |
| 195 | 194 |
| 196 final String name; | 195 final String name; |
| 197 | 196 |
| 198 const AssetState._(this.name); | 197 const AssetState._(this.name); |
| 199 | 198 |
| 200 String toString() => name; | 199 String toString() => name; |
| 201 } | 200 } |
| OLD | NEW |