createDecodedSendGuard property

bool Function() Function(String type, Map<String, Object?> payload)? createDecodedSendGuard
final

createSendGuard for producers that already hold the decoded frame (see enqueue's payload): the guard reads the map instead of decoding the bytes a second time. Takes precedence when a payload is supplied; otherwise createSendGuard (if any) is used.

Implementation

final bool Function() Function(String type, Map<String, Object?> payload)?
    createDecodedSendGuard;