domBuilderLog function

void domBuilderLog(
  1. String message, {
  2. bool warning = false,
  3. Object? error,
  4. StackTrace? stackTrace,
})

Implementation

void domBuilderLog(String message,
    {bool warning = false, Object? error, StackTrace? stackTrace}) {
  if (error != null) {
    print('dom_builder> [ERROR] $message > $error');
  } else if (warning) {
    print('dom_builder> [WARNING] $message');
  } else {
    print('dom_builder> $message');
  }

  if (stackTrace != null) {
    print(stackTrace);
  }
}