OnUserMessageCallback typedef Null safety

void OnUserMessageCallback(
  1. UserMessage message,
  2. Error? error
)

Implementation

typedef OnUserMessageCallback = void Function(
    UserMessage message, Error? error);