7@implementation FlutterEngine (ScenariosTest)
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();