ErrorStackHandler class
Handles Flutter errors by logging, parsing stack traces, and building appropriate error widgets.
Constructors
- ErrorStackHandler({required ErrorStackConfig config, required ErrorStackStorageBase storage})
-
Creates an ErrorStackHandler with the given
configandstorage.
Properties
- config → ErrorStackConfig
-
The configuration for error handling behavior.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storage → ErrorStackStorageBase
-
The storage backend for persisting preferences.
final
Methods
-
buildErrorWidget(
FlutterErrorDetails errorDetails) → Widget - Builds the appropriate error widget based on build mode and config.
-
handleError(
FlutterErrorDetails details) → void - Handles a Flutter error by logging details to the console.
-
install(
) → void - Installs this handler as the global Flutter error handler.
-
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