addException method

void addException(
  1. Object error,
  2. StackTrace? stackTrace
)

Implementation

void addException(Object error, StackTrace? stackTrace) {
  exceptions.add({
    'exception_class': error.runtimeType.toString(),
    'message': error.toString(),
  });
}