foregroundColor property Null safety
If null, then AppBarTheme.foregroundColor is used. If that value is also null, then AppBar uses the overall theme's ColorScheme.onPrimary if the overall theme's brightness is Brightness.light, and ColorScheme.onSurface if the overall theme's brightness is Brightness.dark.
This property is used to configure an AppBar.
final Color? foregroundColor;