DartProtocolBuilder class

Used by the Dart ObjCProtocolBuilder to construct ObjC classes at runtime to implement protocols.

Inheritance
Available extensions

Constructors

DartProtocolBuilder.new()
Returns a new instance of DartProtocolBuilder constructed with the default new method.
factory
DartProtocolBuilder.castFrom(ObjCObjectBase other)
Constructs a DartProtocolBuilder that points to the same underlying object as other.
DartProtocolBuilder.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a DartProtocolBuilder that wraps the given raw object pointer.

Properties

debugDescription NSString

Available on NSObject, provided by the NSObject$Methods extension

debugDescription
no setter
description NSString

Available on NSObject, provided by the NSObject$Methods extension

description
no setter
hash int

Available on NSObject, provided by the NSObject$Methods extension

hash
no setter
hashCode int
The hash code for this object.
no setterinherited
isProxy bool

Available on NSObject, provided by the NSObject$Methods extension

isProxy
no setter
ref ObjCObjectRef
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superclass ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

superclass
no setter

Methods

addObserver(Observer observer, {required NSString forKeyPath, NSKeyValueObservingOptions options = NSKeyValueObservingOptions.NSKeyValueObservingOptionNew, Pointer<Void>? context}) Observation

Available on NSObject, provided by the Observed extension

Registers the Observer to receive KVO notifications for the key path relative to this NSObject.
addProtocol(Protocol protocol) → void

Available on DartProtocolBuilder, provided by the DartProtocolBuilder$Methods extension

addProtocol:
autorelease() DartProtocolBuilder

Available on DartProtocolBuilder, provided by the DartProtocolBuilder$Methods extension

autorelease
autorelease() NSObject

Available on NSObject, provided by the NSObject$Methods extension

autorelease
buildInstance(int port) DartProtocol

Available on DartProtocolBuilder, provided by the DartProtocolBuilder$Methods extension

buildInstance:
class$() ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

class
conformsToProtocol(Protocol aProtocol) bool

Available on NSObject, provided by the NSObject$Methods extension

conformsToProtocol:
copy() ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

copy
dealloc() → void

Available on NSObject, provided by the NSObject$Methods extension

dealloc
doesNotRecognizeSelector(Pointer<ObjCSelector> aSelector) → void

Available on NSObject, provided by the NSObject$Methods extension

doesNotRecognizeSelector:
forwardingTargetForSelector(Pointer<ObjCSelector> aSelector) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

forwardingTargetForSelector:
forwardInvocation(NSInvocation anInvocation) → void

Available on NSObject, provided by the NSObject$Methods extension

forwardInvocation:
implementMethod(Pointer<ObjCSelector> sel, {required Pointer<Void> withBlock, required Pointer<Void> withTrampoline, required Pointer<Char> withSignature}) → void

Available on DartProtocolBuilder, provided by the DartProtocolBuilder$Methods extension

implementMethod:withBlock:withTrampoline:withSignature:
init() DartProtocolBuilder

Available on DartProtocolBuilder, provided by the DartProtocolBuilder$Methods extension

init
init() NSObject

Available on NSObject, provided by the NSObject$Methods extension

init
initWithClassName(Pointer<Char> name) DartProtocolBuilder

Available on DartProtocolBuilder, provided by the DartProtocolBuilder$Methods extension

initWithClassName:
isEqual(ObjCObjectBase object) bool

Available on NSObject, provided by the NSObject$Methods extension

isEqual:
isKindOfClass(ObjCObjectBase aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isKindOfClass:
isMemberOfClass(ObjCObjectBase aClass) bool

Available on NSObject, provided by the NSObject$Methods extension

isMemberOfClass:
methodForSelector(Pointer<ObjCSelector> aSelector) Pointer<NativeFunction<Void Function()>>

Available on NSObject, provided by the NSObject$Methods extension

methodForSelector:
methodSignatureForSelector(Pointer<ObjCSelector> aSelector) NSMethodSignature

Available on NSObject, provided by the NSObject$Methods extension

methodSignatureForSelector:
mutableCopy() ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

mutableCopy
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performSelector(Pointer<ObjCSelector> aSelector) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

performSelector:
performSelector$1(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject}) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:
performSelector$2(Pointer<ObjCSelector> aSelector, {required ObjCObjectBase withObject, required ObjCObjectBase withObject$1}) ObjCObjectBase

Available on NSObject, provided by the NSObject$Methods extension

performSelector:withObject:withObject:
registerClass() → void

Available on DartProtocolBuilder, provided by the DartProtocolBuilder$Methods extension

registerClass
release() → void

Available on NSObject, provided by the NSObject$Methods extension

release
respondsToSelector(Pointer<ObjCSelector> aSelector) bool

Available on NSObject, provided by the NSObject$Methods extension

respondsToSelector:
retain() DartProtocolBuilder

Available on DartProtocolBuilder, provided by the DartProtocolBuilder$Methods extension

retain
retain() NSObject

Available on NSObject, provided by the NSObject$Methods extension

retain
retainCount() int

Available on NSObject, provided by the NSObject$Methods extension

retainCount
self$1() DartProtocolBuilder

Available on DartProtocolBuilder, provided by the DartProtocolBuilder$Methods extension

self
self$1() NSObject

Available on NSObject, provided by the NSObject$Methods extension

self
toString() String
A string representation of this object.
inherited
zone() Pointer<NSZone>

Available on NSObject, provided by the NSObject$Methods extension

zone

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

alloc() DartProtocolBuilder
alloc
override
allocWithZone(Pointer<NSZone> zone) DartProtocolBuilder
allocWithZone:
override
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of DartProtocolBuilder.
override
new$() DartProtocolBuilder
new
override