FlutterMotionSensorsWeb class

Web implementation of FlutterMotionSensorsPlatform

Inheritance

Constructors

FlutterMotionSensorsWeb()
Creates a new instance of FlutterMotionSensorsWeb.

Properties

accelerometerEvents Stream<AccelerometerData>
Start listening to accelerometer events
no setteroverride
gyroscopeEvents Stream<GyroscopeData>
Start listening to gyroscope events
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
magnetometerEvents Stream<MagnetometerData>
Start listening to magnetometer events
no setteroverride
motionSensorEvents Stream<MotionSensorData>
Start listening to all motion sensor events
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAccelerometerData() Future<AccelerometerData?>
Get the current accelerometer data
override
getAllMotionSensorData() Future<MotionSensorData>
Get all available motion sensor data
override
getGyroscopeData() Future<GyroscopeData?>
Get the current gyroscope data
override
getMagnetometerData() Future<MagnetometerData?>
Get the current magnetometer data
override
isMotionSensorAvailable() Future<bool>
Check if the device supports motion sensors
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void
Registers this plugin with the Flutter web plugin registrar.