| 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 * Indicates that loading of [libraryName] is deferred. | 6 * Indicates that loading of [libraryName] is deferred. |
| 7 * | 7 * |
| 8 * Applies to library imports. | 8 * Applies to library imports. |
| 9 * | 9 * |
| 10 * Example usage: | 10 * Example usage: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 * Indicates that an element is not called until [libraryName] has | 34 * Indicates that an element is not called until [libraryName] has |
| 35 * been loaded. | 35 * been loaded. |
| 36 * | 36 * |
| 37 * Applies to library declarations, classes, and functions. | 37 * Applies to library declarations, classes, and functions. |
| 38 */ | 38 */ |
| 39 class OnLibraryLoaded { | 39 class OnLibraryLoaded { |
| 40 final String libraryName; | 40 final String libraryName; |
| 41 | 41 |
| 42 const OnLibraryLoaded(this.libraryName); | 42 const OnLibraryLoaded(this.libraryName); |
| 43 } | 43 } |
| 44 | |
| 45 /** | |
| 46 * Ensure that [libraryName] has been loaded. | |
| 47 * | |
| 48 * The returned future if this invocation of [load] caused the library | |
| 49 * to be loaded. | |
| 50 */ | |
| 51 external Future<bool> load(String libraryName, {String uri}); | |
| OLD | NEW |