executeCommand<TCommand extends Command> method

Future<void> executeCommand<TCommand extends Command>(
  1. TCommand command
)

Implementation

Future<void> executeCommand<TCommand extends Command>(
    TCommand command) async {
  await _middleware.handleCommand<TCommand>(command, () async {
    // Execute the command
  });
}