RotationController constructor
RotationController()
RotationController
The RotationController provides the values of the device's position sensor.
(Rotation only, without geomagnetic)
Notice
- Sensor data is sent only in the AppLifecycleState.resumed state.
- Constructor implemented in the singleton pattern.
- Because it is implemented in a singleton pattern, the
disposemethod of the controller is implemented to not work. - For performance, please call
removeListener,dispose (option)when deleting a widget.
Implementation
factory RotationController() {
return _instance;
}