paint method
Paints this render object into the given context at offset.
Implementation
@override
void paint(PaintingContext context, Offset offset) {
final int x = offset.x.toInt();
final int y = offset.y.toInt();
_paintMenuBarItems(context, x, y);
if (openMenuIndex >= 0 && openMenuIndex < items.length) {
_paintDropdownMenu(context, x, y);
}
}