OnMessageCallback typedef Null safety

void OnMessageCallback(
  1. BaseMessage message,
  2. Error? error
)

Implementation

typedef OnMessageCallback = void Function(BaseMessage message, Error? error);