GyroscopeController constructor

GyroscopeController()

GyroscopeController

The GyroscopeController provides the values of the device's gyro sensor.

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 dispose method of the controller is implemented to not work.
  • For performance, please call removeListener, dispose (option) when deleting a widget.

Implementation

factory GyroscopeController() {
  return _instance;
}