Minor fixes for earlier Dart versions and lint
diff --git a/test/custom_watcher_factory_test.dart b/test/custom_watcher_factory_test.dart
index 964a49d..6c9ffd8 100644
--- a/test/custom_watcher_factory_test.dart
+++ b/test/custom_watcher_factory_test.dart
@@ -82,7 +82,9 @@
 
   StreamController<WatchEvent> watchStream(String path) {
     var controller = StreamController<WatchEvent>();
-    _streams.putIfAbsent(path, () => {}).add(controller);
+    _streams
+        .putIfAbsent(path, () => <StreamController<WatchEvent>>{})
+        .add(controller);
     return controller;
   }
 
@@ -128,6 +130,7 @@
 }
 
 class _MemFsWatcherFactory implements CustomWatcherFactory {
+  @override
   final String id;
   final _MemFs _memFs;
   _MemFsWatcherFactory(this.id, this._memFs);