schemeName property

String get schemeName

Implementation

String get schemeName {
  final value = calloc<IntPtr>();

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

    if (FAILED(hr)) throwWindowsException(hr);

    return value.toDartString();
  } finally {
    free(value);
  }
}