castFromPointer static method

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