set abstract method

void set(
  1. T error, [
  2. Object? exception,
  3. StackTrace? stack,
  4. Object? context,
])

Sets error to lastError, and then calls all the registered listeners with the error passed in, along with related information if provided.

Implementation

void set(T error, [Object? exception, StackTrace? stack, Object? context]);