retain property Null safety

bool retain
read / write

Gets or sets a value indicating whether this MQTT message should be retained by the message broker for transmission to new subscribers. True if message should be retained by the message broker; otherwise, false.

Implementation

bool retain = false;