bytes property
Uint8List
get
bytes
Implementation
Uint8List get bytes {
return Uint8List.fromList(addr + [LEAddressType.values.indexOf(type)]);
}
set
bytes
(Uint8List bytes)
Implementation
set bytes(Uint8List bytes) {
if (bytes.length != 7) {
throw ArgumentError.value(
bytes.length, "Bytes length of Bluetooth LE Address must be 7");
}
addr = bytes.sublist(0, 6);
type = LEAddressType.values[bytes[6]];
}