Message.timeoutFor constructor Null safety

Message.timeoutFor(
  1. String ref
)

Given a unique reference, generate a timeout message that will be used to error out a push.

Implementation

factory Message.timeoutFor(String ref) {
  return Message(
    event: PhoenixChannelEvent.replyFor(ref),
    payload: const {
      'status': 'timeout',
      'response': {},
    },
  );
}