static Pointer<Void> getNativePtr(MapObject? obj) { if (obj == null) return Pointer<Void>.fromAddress(0); return (obj as MapObject$Impl).ptr; }