printOnConsole method

void printOnConsole()

Implementation

void printOnConsole() {
  // return;
  if (exception != null) {
    final StringBuffer stringBuffer = StringBuffer();
    stringBuffer.write('----- ${exception.runtimeType} ------ \n');
    stringBuffer.write('message : $exception');
    log(
      stringBuffer.toString(),
      stackTrace: stackTrace,
      error: error,
    );
  }
}