dayPeriodColor property Null safety

Color? dayPeriodColor
final

The background color of the AM/PM toggle.

If dayPeriodColor is a MaterialStateColor, then the effective background color can depend on the MaterialState.selected state, i.e. if the segment is selected or not.

By default, if the segment is selected, the overall theme's ColorScheme.primary.withOpacity(0.12) is used when the overall theme's brightness is Brightness.light and ColorScheme.primary.withOpacity(0.24) is used when the overall theme's brightness is Brightness.dark. If the segment is not selected, Colors.transparent is used to allow the Dialog's color to be used.

Implementation

final Color? dayPeriodColor;