ArSensorManager constructor

ArSensorManager({
  1. AttitudeFilter? attitudeFilter,
  2. HeadingFilter? headingFilter,
  3. LocationFilter? locationFilter,
  4. bool smoothAttitude = true,
  5. bool smoothLocation = true,
  6. LocationSettings? locationSettings,
  7. ArSensorBackend backend = const ArSensorBackend(),
})

Pass a null filter to use the raw sensor values.

locationSettings configures the position stream (accuracy, distance filter...), see Geolocator.getPositionStream.

Implementation

ArSensorManager({
  AttitudeFilter? attitudeFilter,
  HeadingFilter? headingFilter,
  LocationFilter? locationFilter,
  bool smoothAttitude = true,
  bool smoothLocation = true,
  this.locationSettings,
  this.backend = const ArSensorBackend(),
}) : _attitudeFilter = smoothAttitude
         ? (attitudeFilter ?? AttitudeFilter())
         : null,
     _headingFilter = smoothAttitude
         ? (headingFilter ?? HeadingFilter())
         : null,
     _locationFilter = smoothLocation
         ? (locationFilter ?? LocationFilter())
         : null;