drawKeyboardAccelerator method Null safety
- Canvas canvas
Implementation
void drawKeyboardAccelerator(Canvas canvas) {
final s = bFactory.acceleratorTextStyle;
const double x = -25;
double y = 7 + s.fontSize!;
for (String ch in Characters(acceleratorLabel)) {
TextPainter p = TextPainter(
text: TextSpan(style: s, text: ch),
textAlign: TextAlign.right,
textDirection: TextDirection.ltr);
p.layout(minWidth: 25);
p.paint(canvas, Offset(x, y));
y += s.fontSize!;
}
}