reformatError method Null safety
- Exception e,
- [StackTrace? stack]
reformat error
Implementation
Exception reformatError(Exception e, [StackTrace? stack]) {
return Exception(e.toString().substring(10) +
'at ' +
toString() +
(stack != null ? stack.toString() : ''));
}