fromPointer static method
Implementation
static DebugFlag? fromPointer(Pointer<Void> ptr, {bool needFree = true}) {
if (ptr == nullptr) {
return null;
}
final result = fromInt(ptr.cast<Int32>().value);
if (needFree) {
malloc.free(ptr);
}
return result;
}