SnackBarAction constructor Null safety
- {Key? key,
- Color? textColor,
- Color? disabledTextColor,
- required String label,
- required VoidCallback onPressed}
Creates an action for a SnackBar.
Implementation
const SnackBarAction({
super.key,
this.textColor,
this.disabledTextColor,
required this.label,
required this.onPressed,
}) : assert(label != null),
assert(onPressed != null);