implementAsBlocking static method
Builds an object that implements the NSDatePickerCellDelegate protocol. To implement
multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All
methods that can be implemented as blocking listeners will be.
If $keepIsolateAlive is true, this protocol will keep this isolate
alive until it is garbage collected by both Dart and ObjC.
Implementation
static NSDatePickerCellDelegate implementAsBlocking({
void Function(
NSDatePickerCell,
ffi.Pointer<ffi.Pointer<objc.ObjCObject>>,
ffi.Pointer<NSTimeInterval>,
)?
datePickerCell_validateProposedDateValue_timeInterval_,
bool $keepIsolateAlive = true,
}) {
final builder = objc.ObjCProtocolBuilder(
debugName: 'NSDatePickerCellDelegate',
);
NSDatePickerCellDelegate
.datePickerCell_validateProposedDateValue_timeInterval_
.implementAsBlocking(
builder,
datePickerCell_validateProposedDateValue_timeInterval_,
);
builder.addProtocol($protocol);
return NSDatePickerCellDelegate.castFrom(
builder.build(keepIsolateAlive: $keepIsolateAlive),
);
}