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 watcher.constructable_file_system_event; | |
6 | |
7 import 'dart:io'; | 5 import 'dart:io'; |
8 | 6 |
9 abstract class _ConstructableFileSystemEvent implements FileSystemEvent { | 7 abstract class _ConstructableFileSystemEvent implements FileSystemEvent { |
10 final bool isDirectory; | 8 final bool isDirectory; |
11 final String path; | 9 final String path; |
12 int get type; | 10 int get type; |
13 | 11 |
14 _ConstructableFileSystemEvent(this.path, this.isDirectory); | 12 _ConstructableFileSystemEvent(this.path, this.isDirectory); |
15 } | 13 } |
16 | 14 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 implements FileSystemMoveEvent { | 49 implements FileSystemMoveEvent { |
52 final String destination; | 50 final String destination; |
53 final type = FileSystemEvent.MOVE; | 51 final type = FileSystemEvent.MOVE; |
54 | 52 |
55 ConstructableFileSystemMoveEvent(String path, bool isDirectory, | 53 ConstructableFileSystemMoveEvent(String path, bool isDirectory, |
56 this.destination) | 54 this.destination) |
57 : super(path, isDirectory); | 55 : super(path, isDirectory); |
58 | 56 |
59 String toString() => "FileSystemMoveEvent('$path', '$destination')"; | 57 String toString() => "FileSystemMoveEvent('$path', '$destination')"; |
60 } | 58 } |
OLD | NEW |