isNull static method

bool isNull(
  1. Pointer<NativeType> pointer
)

Check if pointer is null

Implementation

static bool isNull(Pointer pointer) {
  return pointer == nullptr || pointer.address == 0;
}