buildLayoutMenuItems method
Implementation
Iterable<MenuItem> buildLayoutMenuItems(BuildContext context) sync* {
yield* layouts.map((l) => MenuButton(
autoClose: true,
onPressed: (_) {
setLayout(l);
},
trailing: listen.build((_) => currentLayout == l
? const Icon(Icons.check)
: const SizedBox.shrink()),
leading: Icon(l.icon),
child: Text(l.name),
));
}