registerCallBack method
Implementation
registerCallBack(
Pointer<Void> targetPtr, String functionName, Function function) {
Map<String, Function>? methodsMap = _callbackManager[targetPtr];
if (methodsMap == null) {
methodsMap = {functionName: function};
} else {
methodsMap[functionName] = function;
}
_callbackManager[targetPtr] = methodsMap;
}