executor property

ResultExecutor get executor

Explicitly exposes the registered ResultExecutor instance for fast static-like access.

Serves as a Clean Architecture facade, allowing users to safely retrieve the execution engine.

Implementation

static ResultExecutor get executor {
  if (!GetIt.I.isRegistered<ResultExecutor>()) {
    throw StateError(
      'ResultExecutor is not initialized. Make sure to call ErrorHandler().init() before accessing the executor.',
    );
  }
  return GetIt.I.get<ResultExecutor>();
}