Code before migration:

TextStyle

style

Theme

of

context

accentTextTheme

headline1

Code after migration:

final

ThemeData

theme

Theme

of

context

);

TextStyle

style

theme

textTheme

headline1

copyWith

color:

theme

colorScheme

onSecondary

accentIconTheme