copyWithWrapped method
HubParameterDefinition
copyWithWrapped({ - Wrapped<int?>? parameterId,
- Wrapped<String?>? name,
- Wrapped<int?>? subgroupId,
- Wrapped<CborDataType?>? dataType,
- Wrapped<int?>? enumId,
- Wrapped<AccessLevel?>? homeownerAccess,
- Wrapped<AccessLevel?>? dealerAccess,
- Wrapped<double?>? defaultValue,
- Wrapped<double?>? minValue,
- Wrapped<double?>? maxValue,
- Wrapped<String?>? unit,
- Wrapped<double?>? changeStep,
- Wrapped? filteringThreshold,
})
Implementation
HubParameterDefinition copyWithWrapped(
{Wrapped<int?>? parameterId,
Wrapped<String?>? name,
Wrapped<int?>? subgroupId,
Wrapped<enums.CborDataType?>? dataType,
Wrapped<int?>? enumId,
Wrapped<enums.AccessLevel?>? homeownerAccess,
Wrapped<enums.AccessLevel?>? dealerAccess,
Wrapped<double?>? defaultValue,
Wrapped<double?>? minValue,
Wrapped<double?>? maxValue,
Wrapped<String?>? unit,
Wrapped<double?>? changeStep,
Wrapped<dynamic>? filteringThreshold}) {
return HubParameterDefinition(
parameterId:
(parameterId != null ? parameterId.value : this.parameterId),
name: (name != null ? name.value : this.name),
subgroupId: (subgroupId != null ? subgroupId.value : this.subgroupId),
dataType: (dataType != null ? dataType.value : this.dataType),
enumId: (enumId != null ? enumId.value : this.enumId),
homeownerAccess: (homeownerAccess != null
? homeownerAccess.value
: this.homeownerAccess),
dealerAccess:
(dealerAccess != null ? dealerAccess.value : this.dealerAccess),
defaultValue:
(defaultValue != null ? defaultValue.value : this.defaultValue),
minValue: (minValue != null ? minValue.value : this.minValue),
maxValue: (maxValue != null ? maxValue.value : this.maxValue),
unit: (unit != null ? unit.value : this.unit),
changeStep: (changeStep != null ? changeStep.value : this.changeStep),
filteringThreshold: (filteringThreshold != null
? filteringThreshold.value
: this.filteringThreshold));
}