toCpp method

Pointer<Void> toCpp({
  1. ProxyRCType rcType = ProxyRCType.strong,
})

Implementation

Pointer<Void> toCpp({ProxyRCType rcType = ProxyRCType.strong}) {
  final isProxy = this.isProxy;
  if (strongPointer != nullptr && (isProxy || rcType == ProxyRCType.strong)) {
    return strongPointer;
  }
  if (weakPointer != nullptr && (isProxy || rcType == ProxyRCType.weak)) {
    return weakPointer;
  }
  return nullptr;
}