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.
- backgroundColor, which specifies the app bar's background color.
- Theme.of, which returns the current overall Material theme as a ThemeData.
- ThemeData.colorScheme, the thirteen colors that most Material widget default colors are based on.
- ColorScheme.brightness, which indicates if the overall Theme is light or dark.
final Color? foregroundColor;