isNumericScalar property

bool get isNumericScalar

Implementation

bool get isNumericScalar {
  final value = calloc<Bool>();

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

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

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