Skip to content

Commit

Permalink
Minor fixes for earlier Dart versions and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
michalt committed Sep 25, 2020
1 parent dd23dc4 commit 9f639cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/watcher/test/custom_watcher_factory_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ class _MemFs {

StreamController<WatchEvent> watchStream(String path) {
var controller = StreamController<WatchEvent>();
_streams.putIfAbsent(path, () => {}).add(controller);
_streams
.putIfAbsent(path, () => <StreamController<WatchEvent>>{})
.add(controller);
return controller;
}

Expand Down Expand Up @@ -128,6 +130,7 @@ class _MemFsWatcher implements FileWatcher, DirectoryWatcher, Watcher {
}

class _MemFsWatcherFactory implements CustomWatcherFactory {
@override
final String id;
final _MemFs _memFs;
_MemFsWatcherFactory(this.id, this._memFs);
Expand Down

0 comments on commit 9f639cd

Please sign in to comment.