Called when the user indicates that they are done editing the text in the field.
The following is the recommended way to trigger onSubmitted in a test:
tester.sendKeyEvent will not
trigger onSubmitted. This is because on a real device, the engine
translates the enter key to a done action, but
the key to the framework only.
final ValueChanged<String>? onSubmitted;