ResultexObserver class
A globally accessible, thread-safe observer for tracking Failure instances.
Ideal for centralized error logging, telemetry, and crash reporting (e.g., Firebase Crashlytics, Sentry) without explicitly polluting the business logic or UI layers with logging boilerplate.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
initialize(
FailureObserverCallback onDiagnosed) → void -
Registers the global observer callback.
Should be called once during application initialization (e.g., in
main()). -
notify(
Failure failure, [StackTrace? stackTrace]) → void - Silently dispatches the failure to the registered observer, if any.