addCustomActionCallback static method
Sets a callback for receiving method calls on this channel.
The given callback will replace the currently registered callback for this
channel, if any. To remove the handler, pass null as the
handler
argument.
Implementation
static void addCustomActionCallback(
Future<dynamic> Function(MethodCall call)? handler) {
_channel.setMethodCallHandler(handler);
}