ResultExecutor class
A centralized execution wrapper engine responsible for intercepting exceptions and standardizing operational outputs.
It encapsulates runtime blocks into a unified Result structure, automatically processing structural diagnostics via centralized LoggerService and localized FlutterErrorHandler instances.
Constructors
- ResultExecutor({required LoggerService logger, bool reportErrors = true})
-
Creates a constant ResultExecutor instance.
const
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
-
execute<
T> (T operation(), {String? context}) → Result< T> -
Executes a standard synchronous
operationclosure block securely. -
executeAsync<
T> (Future< T> operation(), {String? context}) → Future<Result< T> > -
Executes an asynchronous
operationblock tracking a standard Dart Future pipeline. -
executeStream<
T> (Stream< T> streamFactory(), {String? context}) → Stream<Result< T> > -
Evaluates and wraps a multi-event data
streamFactorypipeline asynchronously. -
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