NearbyMessage.fromString constructor

NearbyMessage.fromString(
  1. String message, {
  2. NearbyMessageType messageType = NearbyMessageType.direct,
  3. dynamic signature,
})

Implementation

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