copyWith method

SensorOptions copyWith({
  1. SensorAccuracy? accuracy,
  2. bool? enableLowPassFilter,
  3. 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,
  );
}