9- (instancetype)initWithScenario:(NSString*)scenario
10 withCompletion:(nullable
void (^)(
void))engineRunCompletion {
11 NSAssert([scenario
length] != 0,
@"You need to provide a scenario");
12 self = [
self initWithName:[NSString stringWithFormat:@"Test engine for %@", scenario]
22 [channel invokeMethod:@"set_scenario"
23 arguments:@{@"name" : scenario}];
25 if (engineRunCompletion != nil) {
26 engineRunCompletion();
FlutterBinaryMessengerConnection setMessageHandlerOnChannel:binaryMessageHandler:(NSString *channel, [binaryMessageHandler] FlutterBinaryMessageHandler handler)
instancetype initWithName:project:(NSString *labelPrefix,[project] nullable FlutterDartProject *project)
instancetype sharedInstance()
instancetype methodChannelWithName:binaryMessenger:codec:(NSString *name,[binaryMessenger] NSObject< FlutterBinaryMessenger > *messenger,[codec] NSObject< FlutterMethodCodec > *codec)