EventDTO<T>.withKey constructor
EventDTO<T>.withKey (})
Creates a DTO for a typed key.
Implementation
factory EventDTO.withKey(EventKey<T> key, T data,
{Map<String, String>? arguments, String? correlationId}) {
return EventDTOImpl<T>._keyed(key, data,
arguments: arguments, correlationId: correlationId);
}