anchor.diff:    }
   
     DartFileWatcher(File this._file) {
  -
       if (_file.name.endsWith('.dart')) {
         _outputName = _file.name.replaceAll('.dart', '.js');
   
  
positive.code: import 'dart:io';
  import 'dart:async';
  
  Directory watchedDir;
  
  class DartFileWatcher {
    File _file;
    DateTime _lastModified;
    Timer _timer;
    String _outputName;
  
    ProcessOptions _processOptions;
  
    void _compile() {
  
      print('Compiling to JavaScript...');
  
      Future<ProcessResult> processResult = Process.run(
          '/Applications/dart/dart-sdk/bin/dart2js',
          ['-o${_outputName}', '${_file.name}'],
          _processOptions);
  
      processResult.then((ProcessResult result) {
        print('Exit code: ${result.exitCode}');
  
        // if (result.stdout.length > 0){
        //  print('Output:\n${result.stdout}');
        // }
  
        // if (result.stderr.length > 0){
        //   print('Error:\n${result.stderr}');
        // }
      });
    }
  
  
negative.code:   void _checkIfModified(Timer timer) {
      _file.lastModified().then((DateTime dateTime) {
        if (_lastModified.millisecondsSinceEpoch != dateTime.millisecondsSinceEpoch) {
          print('File: ${_file.name} was updated...');
  
          _lastModified = dateTime;
          _compile();
        }
  