metadata property

  1. @override
Map<String, dynamic> get metadata
inherited

Additional metadata for the event Can include correlation IDs, causation IDs, user context, etc.

Metadata is persisted with the event, so values must be CBOR-serializable: null, String, int, double, bool, DateTime, Uint8List, and Lists or Maps of those. Any other value is stored as its toString(). ActorRef values (such as replyTo) are transient handles into the running actor system; they are available on the in-memory event but are dropped by toMap and never reach storage. See persistableMetadata.

Implementation

@override
Map<String, dynamic> get metadata => Map<String, dynamic>.from(_metadata);