AccelerationInput mixin Null safety API

Acceleration input for Peripherals.

Superclass Constraints
Implemented by

Constructors

AccelerationInput()

Properties

hub Hub
The hub that this Peripheral is attached to.
final, inherited
attachedIO HubAttachedIOMessage
Port information
final, inherited
rawValues List<Object>
If a inputMode was set and an input value was reported by the peripheral it will be stored in this variable as the raw value.
read / write, inherited
siValues List<double>
If a inputMode was set and an input value was reported by the peripheral it will be stored in this variable as the SI value. [...]
read / write, inherited
stream Stream<PeripheralValueNotification>
Stream that sends notifications when a new values arrives for the active input mode.
read-only, inherited
portId int
Returns the portId this peripheral is attached to. [...]
read-only, inherited
activeMode PeripheralMode?
Returns the currently selected peripheral mode. This can be set by calling setInputMode [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getAcceleration() Future<List<double>>
Gets the acceleration readout.
interrogate({int onlyMode = -1, bool inputMode = false}) Future<void>
Interrogate the port for all its characteristics. including input and output modes. [...]
inherited
dispose() → void
call this to dispose of the peripheral when no longer needed.
inherited
toJsonObject() Map<String, Object>
Provide a JSON suitable object for long term storage of the peripheral characteristics. Can be used to shorted startup time as a cache.
inherited
setInputMode(int mode, int delta, bool notificationEnabled) Future<bool>
Sets a peripheral mode into notification mode. [...]
inherited
inputModeActive(int mode) bool
Returns true if mode has been set as active.
inherited
getModeFor(String name) Future<PeripheralMode>
Returns the PeripheralMode information for mode named name. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

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