SnackBarAction constructor
Creates an action for a SnackBar.
Implementation
const SnackBarAction({
super.key,
this.textColor,
this.disabledTextColor,
this.backgroundColor,
this.disabledBackgroundColor,
required this.label,
required this.onPressed,
}) : assert(backgroundColor is! MaterialStateColor || disabledBackgroundColor == null,
'disabledBackgroundColor must not be provided when background color is '
'a MaterialStateColor');