Skip to content

Commit 7a64e6f

Browse files
committed
fix: performance on iOS
1 parent 7ae73ed commit 7a64e6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dart_native/lib/src/ios/runtime/message.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Pointer<Void> _sendMsgToNative(
2828
if (args == null || args == nullptr) {
2929
args = nullptr.cast();
3030
}
31-
if (callbackPtr == null) {
32-
callbackPtr = nullptr;
31+
if (callbackPtr == nullptr) {
32+
callbackPtr = nullptr.cast();
3333
}
3434
result = nativeInvokeMethod(
3535
target, selector, signature, queuePtr, args, callbackPtr);

0 commit comments

Comments
 (0)