setMotionTrackingControl method
Sets street view to allow using motion tracking control or not. Web only
Return Future while the change has been made on the platform side.
Implementation
Future<void> setMotionTrackingControl(bool enable) {
if (!kIsWeb)
throw UnsupportedError(
"[setMotionTrackingControl] is not yet supported for Web.");
if (enable == _isMotionTrackingControl)
return Future.delayed(Duration.zero);
return _streetViewFlutterPlatform
.setMotionTrackingControl(viewId, enable)
.then((value) => _isMotionTrackingControl = enable);
}