Message.heartbeat constructor Null safety

Message.heartbeat(
  1. String ref
)

Given a unique reference, generate a heartbeat message.

Implementation

factory Message.heartbeat(String ref) {
  return Message(
    topic: 'phoenix',
    event: PhoenixChannelEvent.heartbeat,
    payload: const {},
    ref: ref,
  );
}