darttrack function

void darttrack(
  1. String dir,
  2. String script
)

Main function of the application

Start watch dir files changes and run script when is it happened.

Implementation

void darttrack(String dir, String script) {
  try {
    Controller(dir, script);
  } on Exception catch (e) {
    print('Controller error: $e');
  }
}