position property

BasicGeoposition get position

Implementation

BasicGeoposition get position {
  final retValuePtr = calloc<BasicGeoposition>();

  try {
    final hr = ptr.ref.vtable
        .elementAt(6)
        .cast<
            Pointer<
                NativeFunction<
                    HRESULT Function(Pointer, Pointer<BasicGeoposition>)>>>()
        .value
        .asFunction<
            int Function(Pointer,
                Pointer<BasicGeoposition>)>()(ptr.ref.lpVtbl, retValuePtr);

    if (FAILED(hr)) throw WindowsException(hr);

    final retValue = retValuePtr.ref;
    return retValue;
  } finally {}
}