Avoid Future<void> because it's not Dart 1-compatible

This commit is contained in:
Natalie Weizenbaum 2018-06-13 14:11:07 -07:00
parent 1942466924
commit 0836afdc97

View File

@ -28,7 +28,7 @@ class MultiDirWatcher {
///
/// Returns a [Future] that completes when [events] is ready to emit events
/// from [directory].
Future<void> watch(String directory) {
Future watch(String directory) {
var isParentOfExistingDir = false;
for (var existingDir in _watchers.keys.toList()) {
if (!isParentOfExistingDir &&