addError method Null safety

  1. @protected
  2. @mustCallSuper
  3. @override
void addError(
  1. Object error,
  2. [StackTrace? stackTrace]
)
@mustCallSuper, @protected, inherited

Reports an error which triggers onError with an optional StackTrace.

Implementation

@protected
@mustCallSuper
@override
void addError(Object error, [StackTrace? stackTrace]) {
  onError(error, stackTrace ?? StackTrace.current);
}