textSelectionColor

cursorColor

textSelectionHandleColor

These should be replaced by a more comprehensive TextSelectionThemeData,
which is now specified in ThemeData itself.

The useTextSelectionTheme flag served as a temporary migration flag to
distinguish the two APIs, it can be removed now.

Migration guide

In-depth migration guide available

Code before migration:

ThemeData

useTextSelectionTheme:

false

textSelectionColor:

Colors

blue

cursorColor:

Colors

green

textSelectionHandleColor:

Colors

red

);

Code after migration:

ThemeData

textSelectionTheme:

TextSelectionThemeData

selectionColor: