describe method

String describe({
  1. bool includeThrownBy = true,
})

Implementation

String describe({bool includeThrownBy = true}) {
  return "Exception: $message${statement != null && includeThrownBy ? '\n> Thrown by: ${statement!.toScript()}' : ''}";
}