PeripheralMode class Null safety API

Mode container

Constructors

PeripheralMode(int modeId, bool inputMode)

Properties

active bool
true if this mode has been set active using Peripheral.setInputMode
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
inputMode bool
true if this is an input put.
final
modeId int
id of the mode
final
name String
name of the mode.
read / write
rawRange PeripheralModeRange
Raw range of the values.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
siRange PeripheralModeRange
SI Range of the values.
read / write
symbol String
SI symbol of the mode.
read / write
valueFormat ValueFormat
Value format of the mode.
read / write

Methods

decodeRaw(List<int> data, int offset) List<Object>
decodes a ValueMessage raw binary message data into raw data.
decodeSI(List<int> data, int offset) List<double>
decode a data stream according to the Format
listToSI(List<Object> raw) List<double>
Decode a list of raw values to SI units as determined by the mode's valueFormat.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJsonObject() Map<String, Object>
returns a Object suitable for encoding as JSON with the details of the mode. [...]
toSI(Object raw) double
translate a raw value to an SI value as determined by the mode's valueFormat.
toString() String
return string value of the mode.
override

Operators

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