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