NearbyMessage.handshakeMessage constructor

NearbyMessage.handshakeMessage(
  1. String handshakePayload, {
  2. dynamic signature,
})

Implementation

NearbyMessage.handshakeMessage(String handshakePayload, {signature})
    : messageType = NearbyMessageType.handshake,
      dateTime = DateTime.now(),
      message = BytesUtils.stringToBytesArray(handshakePayload),
      pSize = BytesUtils.stringToBytesArray(handshakePayload).length,
      signature = signature ?? Uint8List(0);