castFromPointer static method

ObjCBlock<NSString? Function(Pointer<Void>, NSTokenFieldCell, Pointer<ObjCObject>)> 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<
  objc.NSString? Function(
    ffi.Pointer<ffi.Void>,
    NSTokenFieldCell,
    ffi.Pointer<objc.ObjCObject>,
  )
>
castFromPointer(
  ffi.Pointer<objc.ObjCBlockImpl> pointer, {
  bool retain = false,
  bool release = false,
}) =>
    objc.ObjCBlock<
      objc.NSString? Function(
        ffi.Pointer<ffi.Void>,
        NSTokenFieldCell,
        ffi.Pointer<objc.ObjCObject>,
      )
    >(pointer, retain: retain, release: release);