create static method

CourierClient create({
  1. required AuthProvider authProvider,
  2. required CourierConfiguration config,
  3. List<MessageAdapter> messageAdapters = const <MessageAdapter>[BytesMessageAdapter(), JSONMessageAdapter()],
})

Implementation

static CourierClient create(
    {required AuthProvider authProvider,
    required CourierConfiguration config,
    List<MessageAdapter> messageAdapters = const <MessageAdapter>[
      BytesMessageAdapter(),
      JSONMessageAdapter()
    ]}) {
  return _CourierClientImpl(authProvider, config, messageAdapters);
}