Change the enterText method to move the caret to the end of the input text

Summary

Context

Description of change

Migration guide

TestTextInput.enterText
WidgetTester.enterText

Timeline

References

Summary

The WidgetTester.enterText and TestTextInput.enterText methods
now move the caret to the end of the input text.

Context

The caret indicates the insertion point within the current text in an 
active input field. Typically, when a new character is entered, the 
caret stays immediately after it. In Flutter the caret position is 
represented by a collapsed selection. When the selection is invalid, 
usually the user won’t be able to modify or add text until they 
change the selection to a valid value.