SnackBarAction constructor

const SnackBarAction({Key key, Color textColor, Color disabledTextColor, @required String label, @required VoidCallback onPressed })

Creates an action for a SnackBar.

The label and onPressed arguments must be non-null.

Implementation

const SnackBarAction({
  Key key,
  this.textColor,
  this.disabledTextColor,
  @required this.label,
  @required this.onPressed,
}) : assert(label != null),
     assert(onPressed != null),
     super(key: key);