copyWith method
Sensor
copyWith(
{ - String? name,
- String? vendor,
- int? version,
- int? type,
- double? maxRange,
- double? resolution,
- double? power,
- int? minDelay,
- int? reportingMode,
- bool? isDynamicSensor,
- bool? isWakeUpSensor,
- int? fifoReservedEventCount,
- int? fifoMaxEventCount,
- String? stringType,
- int? maxDelay,
- int? id,
})
Implementation
Sensor copyWith({
String? name,
String? vendor,
int? version,
int? type,
double? maxRange,
double? resolution,
double? power,
int? minDelay,
int? reportingMode,
bool? isDynamicSensor,
bool? isWakeUpSensor,
int? fifoReservedEventCount,
int? fifoMaxEventCount,
String? stringType,
int? maxDelay,
int? id,
}) {
return Sensor(
name: name ?? this.name,
vendor: vendor ?? this.vendor,
version: version ?? this.version,
type: type ?? this.type,
maxRange: maxRange ?? this.maxRange,
resolution: resolution ?? this.resolution,
power: power ?? this.power,
minDelay: minDelay ?? this.minDelay,
reportingMode: reportingMode ?? this.reportingMode,
isDynamicSensor: isDynamicSensor ?? this.isDynamicSensor,
isWakeUpSensor: isWakeUpSensor ?? this.isWakeUpSensor,
fifoReservedEventCount:
fifoReservedEventCount ?? this.fifoReservedEventCount,
fifoMaxEventCount: fifoMaxEventCount ?? this.fifoMaxEventCount,
stringType: stringType ?? this.stringType,
maxDelay: maxDelay ?? this.maxDelay,
id: id ?? this.id,
);
}