OnFileMessageCallback typedef Null safety

void OnFileMessageCallback(
  1. FileMessage message,
  2. Error? error
)

Implementation

typedef OnFileMessageCallback = void Function(
    FileMessage message, Error? error);