anchor.diff:              maturity: Maturity.stable,
               group: Group.errors);
   
  -  @override
  -  void registerNodeProcessors(
  -      NodeLintRegistry registry, LinterContext context) {
  -    var visitor = _Visitor(this);
  -    registry.addCompilationUnit(this, visitor);
  -    registry.addImportDirective(this, visitor);
  -  }
  -}
  -
  -class _Visitor extends SimpleAstVisitor<void> {
  -  File? pubspecFile;
  -
  -  final LintRule rule;
  -  bool? _shouldValidateUri;
  -
  -  _Visitor(this.rule);
  -
  -  bool get shouldValidateUri => _shouldValidateUri ??= checkForValidation();
  -
  -  bool checkForValidation() {
  -    var file = pubspecFile;
  -    if (file == null) {
  +  bool hasFlutterDep(File? pubspec) {
  +    if (pubspec == null) {
         return false;
       }
   
       YamlMap parsedPubspec;
       try {
  -      var content = file.readAsStringSync();
  +      var content = pubspec.readAsStringSync();
         parsedPubspec = _parseYaml(content);
         // ignore: avoid_catches_without_on_clauses
       } catch (_) {
  
positive.code:         null;
    }
  
    bool isWebUri(String uri) {
      var uriLength = uri.length;
      return (uriLength == 9 && uri == 'dart:html') ||
  
negative.code:   }
  
    @override
    void visitImportDirective(ImportDirective node) {
      var uriString = node.uri.stringValue;
      if (uriString != null && isWebUri(uriString)) {
        rule.reportLint(node);
      }
    }
  }
  