castFrom<T extends _ObjCWrapper> static method

NSProxy castFrom<T extends _ObjCWrapper>(
  1. T other
)

Returns a NSProxy that points to the same underlying object as other.

Implementation

static NSProxy castFrom<T extends _ObjCWrapper>(T other) {
  return NSProxy._(other._id, other._lib, retain: true, release: true);
}