fromOptionalPtr static method

ImageWrapper? fromOptionalPtr(
  1. Pointer<Void> handle
)

Implementation

static ImageWrapper? fromOptionalPtr(Pointer<Void> handle) {
  if (handle.address == 0) return null;
  return fromNativePtr(handle);
}