run method
Executes the BDD scenario as a Flutter widget test.
This method natively uses testWidgets from package:flutter_test.
Implementation
void run([WidgetTestCallback? testCallback]) {
BddRunner().run(
bdd,
(ctx) async {
if (testCallback != null) {
await testCallback(ctx, _widgetContextOf(ctx).tester);
}
},
_testDelegate,
_errorHandler,
() => TestWidgetsFlutterBinding.instance is LiveTestWidgetsFlutterBinding,
);
}