SendMessageCallback typedef

SendMessageCallback = void Function(String commandName, Object? result, String? error)

Receives a result that the native client receives it successfully from the JavaScript receiver when it processed a task of a commandName's command. An error when the native client receives it from the JavaScript receiver. If a task in JavaScript results in successful, the error will be null.

Implementation

typedef SendMessageCallback = void Function(
    String commandName, Object? result, String? error);