ControlPackage constructor
ControlPackage({
- CtrlType? ctrlType,
- Runtime? runtime,
- RemoteClientInfo? remoteClientInfo,
- AccumulatedStatus? status,
- ErrorMsg? errorMsg,
- ActionRequest? actionRequest,
- Map<
String, ModuleAnnotation> ? moduleAnnotations, - ConfigUploadPayload? configUploadPayload,
- LogMessage? logMessage,
- PowerProfile? powerProfile,
- RemoteFunctionRequest? remoteFunctionRequest,
- RemoteFunctionReturn? remoteFunctionReturn,
- 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;
}