createPortWithCallback function
Implementation
int createPortWithCallback(void Function(dynamic) callback) {
final port = ReceivePort()..listen(callback);
return port.sendPort.nativePort;
}
int createPortWithCallback(void Function(dynamic) callback) {
final port = ReceivePort()..listen(callback);
return port.sendPort.nativePort;
}