addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(
- ObjCProtocolBuilder builder, {
- required ObjCObjectBase animator(),
- required NSDictionary animations(),
- required void setAnimations_(
- NSDictionary keyedValues
- required ObjCObjectBase? animationForKey_(
- NSString aClassName
- bool $keepIsolateAlive = true,
Adds the implementation of the NSAnimatablePropertyContainer protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as blocking
listeners will be.
Note: You cannot call this method after you have called builder.build.
Implementation
static void addToBuilderAsBlocking(
objc.ObjCProtocolBuilder builder, {
required Dartinstancetype Function() animator,
required objc.NSDictionary Function() animations,
required void Function(objc.NSDictionary) setAnimations_,
required objc.ObjCObjectBase? Function(DartNSAnimatablePropertyKey)
animationForKey_,
bool $keepIsolateAlive = true,
}) {
NSAnimatablePropertyContainer.animator.implement(builder, animator);
NSAnimatablePropertyContainer.animations.implement(builder, animations);
NSAnimatablePropertyContainer.setAnimations_.implementAsBlocking(
builder,
setAnimations_,
);
NSAnimatablePropertyContainer.animationForKey_.implement(
builder,
animationForKey_,
);
builder.addProtocol($protocol);
}