printStackTrace method

void printStackTrace([
  1. bool useErrorPrint = false
])

Prints the StackTrace to console.

Implementation

void printStackTrace([bool useErrorPrint = false]) {
  if (useErrorPrint) {
    stderr.write(this);
  } else {
    print(this);
  }
}