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