useDeveloperLog static method

void useDeveloperLog()

Redirects output to developer.log, which is often richer in IDEs.

Implementation

static void useDeveloperLog() {
  _printFunction = (e) => developer.log(e.toString());
}