copyWith method
SensorOptions
copyWith({
- SensorAccuracy? accuracy,
- bool? enableLowPassFilter,
- double? lowPassAlpha,
API Documentation for copyWith.
Implementation
SensorOptions copyWith({
SensorAccuracy? accuracy,
bool? enableLowPassFilter,
double? lowPassAlpha,
}) {
return SensorOptions(
accuracy: accuracy ?? this.accuracy,
enableLowPassFilter: enableLowPassFilter ?? this.enableLowPassFilter,
lowPassAlpha: lowPassAlpha ?? this.lowPassAlpha,
);
}