SensorInterval class

Defines some common intervals for sensor data updates.

Annotations
  • @sealed

Constructors

SensorInterval()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

fastestInterval → const Duration
The fastest possible update interval for sensor data. This setting is for applications that require real-time updates from the sensor, such as those needed for precise scientific measurements or advanced simulation.
gameInterval → const Duration
High-frequency update interval suitable for gaming applications. Provides more frequent updates to ensure game mechanics based on sensor data are responsive and provide a fluid experience.
normalInterval → const Duration
Default update interval suitable for tracking screen orientation changes. This is a balanced rate that does not demand high processing power and is sufficient for most applications that react to orientation changes.
uiInterval → const Duration
Update interval optimised for user interface responsiveness. This faster rate is appropriate when the UI needs to update smoothly in response to sensor data, such as in animations or transitions.