raise method

void raise(
  1. Object error
)

Raises (broadcasts) an error object on the error stream.

This method allows you to notify listeners about any error that occurs in your application. The error object can be any type of object that provides information about the error.

Implementation

void raise(Object error) {
  _streamController.add(error);
}