devNull function

void devNull(
  1. String? line
)

devNull is a convenience function which you can use if you want to ignore the output of a LineAction. Its typical useage is a forEach where you don't want to see any stdout but you still want to see errors printed to stderr.

'git pull'.forEach(devNull, stderr: (line) => printerr(line));

use this to consume the output.

Implementation

void devNull(String? line) {}