ControlPackage constructor

ControlPackage({
  1. CtrlType? ctrlType,
  2. Runtime? runtime,
  3. RemoteClientInfo? remoteClientInfo,
  4. AccumulatedStatus? status,
  5. ErrorMsg? errorMsg,
  6. ActionRequest? actionRequest,
  7. Map<String, ModuleAnnotation>? moduleAnnotations,
  8. ConfigUploadPayload? configUploadPayload,
  9. LogMessage? logMessage,
  10. PowerProfile? powerProfile,
  11. RemoteFunctionRequest? remoteFunctionRequest,
  12. RemoteFunctionReturn? remoteFunctionReturn,
  13. LooseDirectChannelSubscription? looseDirectSubscription,
})

Implementation

factory ControlPackage({
  CtrlType? ctrlType,
  Runtime? runtime,
  RemoteClientInfo? remoteClientInfo,
  AccumulatedStatus? status,
  ErrorMsg? errorMsg,
  ActionRequest? actionRequest,
  $core.Map<$core.String, ModuleAnnotation>? moduleAnnotations,
  ConfigUploadPayload? configUploadPayload,
  LogMessage? logMessage,
  PowerProfile? powerProfile,
  RemoteFunctionRequest? remoteFunctionRequest,
  RemoteFunctionReturn? remoteFunctionReturn,
  LooseDirectChannelSubscription? looseDirectSubscription,
}) {
  final $result = create();
  if (ctrlType != null) {
    $result.ctrlType = ctrlType;
  }
  if (runtime != null) {
    $result.runtime = runtime;
  }
  if (remoteClientInfo != null) {
    $result.remoteClientInfo = remoteClientInfo;
  }
  if (status != null) {
    $result.status = status;
  }
  if (errorMsg != null) {
    $result.errorMsg = errorMsg;
  }
  if (actionRequest != null) {
    $result.actionRequest = actionRequest;
  }
  if (moduleAnnotations != null) {
    $result.moduleAnnotations.addAll(moduleAnnotations);
  }
  if (configUploadPayload != null) {
    $result.configUploadPayload = configUploadPayload;
  }
  if (logMessage != null) {
    $result.logMessage = logMessage;
  }
  if (powerProfile != null) {
    $result.powerProfile = powerProfile;
  }
  if (remoteFunctionRequest != null) {
    $result.remoteFunctionRequest = remoteFunctionRequest;
  }
  if (remoteFunctionReturn != null) {
    $result.remoteFunctionReturn = remoteFunctionReturn;
  }
  if (looseDirectSubscription != null) {
    $result.looseDirectSubscription = looseDirectSubscription;
  }
  return $result;
}