onCallNativeAsync property
Callback to handle async native calls from JS
Implementation
@override
set onCallNativeAsync(
FutureOr<dynamic> Function(String method, dynamic args)? callback,
) {
_onCallNativeAsync = callback;
if (callback != null) {
global.defineProperty('dartCallNativeAsync', (method, args) {
return _onCallNativeAsync?.call(method, args);
});
}
}