BannerPainter constructor
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);