Migration guide

If you are currently using the following properties of
ThemeData, you need to update them to use the new
equivalent properties on ThemeData.textSelectionTheme:

ThemeData.cursorColor

TextSelectionThemeData.cursorColor

ThemeData.textSelectionColor

TextSelectionThemeData.selectionColor

ThemeData.textSelectionHandleColor

TextSelectionThemeData.selectionHandleColor

Code before migration:

ThemeData

cursorColor:

Colors

red

textSelectionColor:

Colors

green

textSelectionHandleColor:

Colors

blue

Code after migration:

ThemeData

textSelectionTheme:

TextSelectionThemeData

cursorColor:

Colors