bytes property

Uint8List get bytes

Gets the address as raw bytes.

Implementation

Uint8List get bytes {
  return addr;
}
set bytes (Uint8List bytes)

Sets the address from raw bytes.

Implementation

set bytes(Uint8List bytes) {
  if (bytes.length != 6) {
    throw ArgumentError.value(
      bytes.length,
      "Bytes length of Bluetooth LE Address must be 6",
    );
  }
  addr = bytes;
}