castFromPointer static method

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