SnackBar constructor

const SnackBar({Key key, @required Widget content, Color backgroundColor, SnackBarAction action, Duration duration: _kSnackBarDisplayDuration, Animation<double> animation })

Creates a snack bar.

The content argument must be non-null.

Implementation

const SnackBar({
  Key key,
  @required this.content,
  this.backgroundColor,
  this.action,
  this.duration = _kSnackBarDisplayDuration,
  this.animation,
}) : assert(content != null),
     assert(duration != null),
     super(key: key);