buildContent method
Builds the widget shown inside the popup menu entry.
Implementation
Widget buildContent(BuildContext context) {
if (child != null) return child!;
final text = Text(label!, style: textStyle);
if (icon == null) return text;
return Row(
mainAxisSize: MainAxisSize.min,
children: [
icon!,
const Gap(12),
Flexible(child: text),
],
);
}