NearbyMessage.fromBytes constructor

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

Implementation

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