ErrorManager mixin

Mixin that provides error management for API logging.

Handles UI and normal errors, manages listeners for error changes, and persists error display preferences using SaveManager.

Superclass constraints
Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
isLogCurl bool
Whether curl logging is enabled.
getter/setter pairinherited
isLogEnabled bool
Whether logging is enabled.
getter/setter pairinherited
isShowNormalError bool
Whether normal errors should be shown.
getter/setter pair
isShowUIError bool
Whether UI errors should be shown.
getter/setter pair
models List<BaseModel>
The list of models tracked by the logger.
getter/setter pairinherited
The navigator key for navigation operations.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveManager SaveManager
The save manager for persistent storage.
getter/setter pairinherited

Methods

addErrorListener(OnErrorModelChanged listener) → void
Adds a listener for error model changes.
addNormalError(dynamic error, StackTrace stackTrace) → void
Adds a normal (non-UI) error and notifies listeners.
addOnNewErrorFiredListener(OnNewError listener) → void
Adds a listener for new Flutter errors.
addUIError(FlutterErrorDetails error) → void
Adds a UI error and notifies listeners.
initErrorManager() Future<void>
Initializes error manager state from persistent storage.
listenFlutterError(OnNewError? onError) → void
Registers a callback to listen for Flutter errors.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeError(ErrorModel model) → void
Removes an error model and notifies listeners.
removeErrorListener(OnErrorModelChanged listener) → void
Removes a listener for error model changes.
removeOnNewErrorFiredListener(OnNewError listener) → void
Removes a listener for new Flutter errors.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

isShowNormalErrorKey → const String
isShowUIErrorKey → const String