MagnetometerEvent class Null safety

A sensor sample from a magnetometer.

Magnetometers measure the ambient magnetic field surrounding the sensor, returning values in microteslas μT for each three-dimensional axis.

Consider that these samples may bear effects of Earth's magnetic field as well as local factors such as the metal of the device itself or nearby magnets, though most devices compensate for these factors.

A compass is an example of a general utility for magnetometer data.

Constructors

MagnetometerEvent(double x, double y, double z)
Constructs a new instance with the given x, y, and z values.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
x double
The ambient magnetic field in this axis surrounding the sensor in microteslas μT.
final
y double
The ambient magnetic field in this axis surrounding the sensor in microteslas μT.
final
z double
The ambient magnetic field in this axis surrounding the sensor in microteslas μT.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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