textColor property
final
The color of the tile's titles when the sublist is expanded.
Used to override to the ListTileThemeData.textColor.
If this property is null then ExpansionTileThemeData.textColor is used. If that is also null then and ThemeData.useMaterial3 is true, color of the TextTheme.bodyLarge will be used for the title and subtitle. Otherwise, defaults to ColorScheme.primary color.
See also:
- ExpansionTileTheme.of, which returns the nearest ExpansionTileTheme's ExpansionTileThemeData.
Implementation
final Color? textColor;