BannerPainter constructor

BannerPainter({@required String message, @required TextDirection textDirection, @required BannerLocation location, @required TextDirection layoutDirection, Color color: _kColor, TextStyle textStyle: _kTextStyle })

Creates a banner painter.

The message, textDirection, location, and layoutDirection arguments must not be null.

Implementation

BannerPainter({
  @required this.message,
  @required this.textDirection,
  @required this.location,
  @required this.layoutDirection,
  this.color = _kColor,
  this.textStyle = _kTextStyle,
}) : assert(message != null),
     assert(textDirection != null),
     assert(location != null),
     assert(color != null),
     assert(textStyle != null);