report method

void report(
  1. ErrorType type,
  2. dynamic error, {
  3. StackTrace? stackTrace,
  4. FlutterErrorDetails? flutterErrorDetails,
})

Reports an error.

Implementation

void report(
  ErrorType type,
  dynamic error, {
  StackTrace? stackTrace,
  FlutterErrorDetails? flutterErrorDetails,
}) {
  for (var listener in _errorListeners) {
    listener.onError(
      type,
      error,
      stackTrace,
      flutterErrorDetails,
    );
  }
}