addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(})
Adds the implementation of the NSAnimationDelegate 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, {
bool Function(NSAnimation)? animationShouldStart_,
void Function(NSAnimation)? animationDidStop_,
void Function(NSAnimation)? animationDidEnd_,
double Function(NSAnimation, DartNSAnimationProgress)?
animation_valueForProgress_,
void Function(NSAnimation, DartNSAnimationProgress)?
animation_didReachProgressMark_,
bool $keepIsolateAlive = true,
}) {
NSAnimationDelegate.animationShouldStart_.implement(
builder,
animationShouldStart_,
);
NSAnimationDelegate.animationDidStop_.implementAsBlocking(
builder,
animationDidStop_,
);
NSAnimationDelegate.animationDidEnd_.implementAsBlocking(
builder,
animationDidEnd_,
);
NSAnimationDelegate.animation_valueForProgress_.implement(
builder,
animation_valueForProgress_,
);
NSAnimationDelegate.animation_didReachProgressMark_.implementAsBlocking(
builder,
animation_didReachProgressMark_,
);
builder.addProtocol($protocol);
}