executeThread method

Future<Command> executeThread()

Implementation

Future<Command> executeThread() async {
  final cmdOrThis = subCommand;
  if (cmdOrThis.dirty) {
    await executeCommandAsync(cmdOrThis).then((value) {
      cmdOrThis
        ..dirty = false
        ..outputImage = value.image
        ..outputBytes = value.bytes
        ..outputObject = value.object;
      if (_subCommand != null) {
        outputImage = _subCommand!.outputImage;
        outputBytes = _subCommand!.outputBytes;
        outputObject = _subCommand!.outputObject;
      }
    });
  }
  return this;
}