disabledColor property Null safety

Color? disabledColor

The color for descendant Text and Icon widgets if the button is disabled.

If onPressed is null, this color will be used.

If this property is null, then ToggleButtonTheme.of(context).disabledColor is used. If ToggleButtonsThemeData.disabledColor is also null, then Theme.of(context).colorScheme.onSurface.withOpacity(0.38) is used.


final Color? disabledColor;