BannerPainter constructor
- required String message,
- required TextDirection textDirection,
- required BannerLocation location,
- required TextDirection layoutDirection,
- Color color = _kColor,
- TextStyle textStyle = _kTextStyle,
Creates a banner painter.
Implementation
BannerPainter({
required this.message,
required this.textDirection,
required this.location,
required this.layoutDirection,
this.color = _kColor,
this.textStyle = _kTextStyle,
}) : super(repaint: PaintingBinding.instance.systemFonts) {
// TODO(polina-c): stop duplicating code across disposables
// https://github.com/flutter/flutter/issues/137435
if (kFlutterMemoryAllocationsEnabled) {
FlutterMemoryAllocations.instance.dispatchObjectCreated(
library: _flutterWidgetsLibrary,
className: '$BannerPainter',
object: this,
);
}
}