tailAndPrint function

void tailAndPrint(
  1. File file
)

Implementation

void tailAndPrint(File file) {
  try {
    tail(file)
        .transform(utf8.decoder)
        .transform(LineSplitter())
        .forEach((line) {
      // Do something with the line that has been read, e.g. print it out...
      print(line);
    });
  } catch (E) {}
}