state property
PeripheralState
get
state
Gets the PeripheralState based on stateCode
.
Implementation
PeripheralState get state {
switch (stateStr) {
case 0:
return PeripheralState.disconnected;
case 2:
return PeripheralState.connected;
default:
return PeripheralState.disconnected;
}
}