fromPointer static method

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

Implementation

static CameraUpdateReason? 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;
}