Banner constructor

const Banner({Key key, Widget child, @required String message, TextDirection textDirection, @required BannerLocation location, TextDirection layoutDirection, Color color: _kColor, TextStyle textStyle: _kTextStyle })

Creates a banner.

The message and location arguments must not be null.

Implementation

const Banner({
  Key key,
  this.child,
  @required this.message,
  this.textDirection,
  @required this.location,
  this.layoutDirection,
  this.color = _kColor,
  this.textStyle = _kTextStyle,
}) : assert(message != null),
     assert(location != null),
     assert(color != null),
     assert(textStyle != null),
     super(key: key);