fromPointer static method

SearchFilterCollectionDateRange? fromPointer(
  1. Pointer<Void> ptr, {
  2. bool needFree = true,
})

Implementation

static SearchFilterCollectionDateRange? fromPointer(ffi.Pointer<ffi.Void> ptr,
    {core.bool needFree = true}) {
  if (ptr == ffi.nullptr) {
    return null;
  }
  final result = SearchFilterCollectionDateRangeImpl.fromNative(
      ptr.cast<SearchFilterCollectionDateRangeNative>().ref);

  if (needFree) {
    malloc.free(ptr);
  }
  return result;
}