PayloadBinding.forMessage constructor
PayloadBinding.forMessage({})
The binding of a message as it will be, or was, submitted. An empty folder is the inbox, which is where the server delivers it.
Implementation
factory PayloadBinding.forMessage({
required PeerId recipientPeerId,
required String? folderPath,
required String messageId,
}) =>
PayloadBinding(
recipientPeerId: recipientPeerId.toBase58(),
folderPath: (folderPath == null || folderPath.isEmpty) ? 'inbox' : folderPath,
messageId: messageId,
);