onCommandComplete function

void onCommandComplete(
  1. FutureOr<void> callback(
    1. CommandResult result
    )
)

Implementation

void onCommandComplete(FutureOr<void> Function(CommandResult result) callback) {
  _commandCompleteListeners.add(callback);
}