closeIconColor property
final
An optional color for the close icon, if showCloseIcon is true.
If this property is null, then SnackBarThemeData.closeIconColor of ThemeData.snackBarTheme is used. If that is null, then the default is inverse surface.
If closeIconColor is a WidgetStateColor, then the icon color will be resolved against the set of WidgetStates that the action text is in, thus allowing for different colors for states such as pressed, hovered and others.
Implementation
final Color? closeIconColor;