ErrorService class

A service for handling and broadcasting errors in a Flutter application.

This class provides a stream to listen for any errors that may occur throughout the application. You can use this stream to display error messages, log errors, or take other appropriate actions.

Constructors

ErrorService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<Object>
A stream that provides updates on any errors that occur in the application.
no setter

Methods

dispose() Future<void>
Disposes of the stream controller to avoid memory leaks.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
raise(Object error) → void
Raises (broadcasts) an error object on the error stream.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited