fromOptionalPtr static method

Graph? fromOptionalPtr(
  1. Pointer<Void> ptr
)

Implementation

static Graph? fromOptionalPtr(Pointer<Void> ptr) {
    if (ptr.address == 0) return null;
    return Graph$Impl.fromNativePtr(ptr);
}