initWithObject$1 method
NSOrderedCollectionChange
initWithObject$1(
- ObjCObject? anObject, {
- required NSCollectionChangeType type,
- required int index,
- required int associatedIndex,
initWithObject:type:index:associatedIndex:
iOS: introduced 13.0.0 macOS: introduced 10.15.0
Implementation
NSOrderedCollectionChange initWithObject$1(
objc.ObjCObject? anObject, {
required NSCollectionChangeType type,
required int index,
required int associatedIndex,
}) {
objc.checkOsVersionInternal(
'NSOrderedCollectionChange.initWithObject:type:index:associatedIndex:',
iOS: (false, (13, 0, 0)),
macOS: (false, (10, 15, 0)),
);
final $ret = _objc_msgSend_1egc1c(
object$.ref.retainAndReturnPointer(),
_sel_initWithObject_type_index_associatedIndex_,
anObject?.ref.pointer ?? ffi.nullptr,
type.value,
index,
associatedIndex,
);
return NSOrderedCollectionChange.fromPointer(
$ret,
retain: false,
release: true,
);
}