refPtrLitOrNull<U extends NativeType, D> method

Pointer<U> refPtrLitOrNull<U extends NativeType, D>(
  1. D? x,
  2. String key,
  3. Pointer<U> alloc([
    1. D,
    2. String
    ])
)
inherited

Implementation

Pointer<U> refPtrLitOrNull<U extends NativeType, D>(
  D? x, String key, Pointer<U> Function([D, String]) alloc
) => x == null ? nullptr : alloc(x, key);