execute method Null safety

  1. @override
Future<void> execute(
  1. {required CancelToken cancelToken,
  2. required TestReport report,
  3. required TestController tester}
)
override

Dismisses the keyboard if shown and does nothing if the keyboard is not currently showing.

Implementation

@override
Future<void> execute({
  required CancelToken cancelToken,
  required TestReport report,
  required TestController tester,
}) async {
  log(
    'dismiss_keyboard',
    tester: tester,
  );
  await SystemChannels.textInput.invokeMethod('TextInput.hide');
}