ISpect class final
The main entry point for initializing and managing logging/error handling.
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 Properties
- logger → ISpectLogger
-
Returns the global logger instance.
no setter
Static Methods
-
dispose(
) → void - Disposes current ISpect state (useful for testing or hot restart).
-
initialize(
ISpectLogger logger, {bool force = false}) → bool -
Initializes the logger instance once.
Returns
trueif initialization was successful. -
read(
BuildContext context) → ISpectScopeModel -
Reads the
ISpectScopeModelfrom the widget tree. -
run<
T> (T callback(), {ISpectLogger? logger, VoidCallback? onInit, VoidCallback? onInitialized, void onZonedError(Object, StackTrace)?, bool isPrintLoggingEnabled = !kReleaseMode, bool isFlutterPrintEnabled = true, bool isZoneErrorHandlingEnabled = true, void onPlatformDispatcherError(Object, StackTrace)?, void onFlutterError(FlutterErrorDetails, StackTrace?)?, void onPresentError(FlutterErrorDetails, StackTrace?)?, void onUncaughtErrors(List)?, ISpectLogOptions options = const ISpectLogOptions(), List< String> filters = const []}) → void - Runs the app with centralized logging and error capture.