castFromPointer static method

ObjCBlock<Void Function(Pointer<Void>, ObjCBlock<NSDictionary Function(NSDictionary)>)> castFromPointer(
  1. Pointer<ObjCBlockImpl> pointer, {
  2. bool retain = false,
  3. bool release = false,
})

Returns a block that wraps the given raw block pointer.

Implementation

static objc.ObjCBlock<
  ffi.Void Function(ffi.Pointer<ffi.Void>, objc.ObjCBlock<objc.NSDictionary Function(objc.NSDictionary)>)
>
castFromPointer(ffi.Pointer<objc.ObjCBlockImpl> pointer, {bool retain = false, bool release = false}) =>
    objc.ObjCBlock<
      ffi.Void Function(ffi.Pointer<ffi.Void>, objc.ObjCBlock<objc.NSDictionary Function(objc.NSDictionary)>)
    >(pointer, retain: retain, release: release);