fromOptionalPtr static method

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

Implementation

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