menu function

void menu(
  1. String name,
  2. void body(), {
  3. String? cmd,
  4. bool? group,
  5. @Deprecated('Dev only') bool? solo,
})

Declare a menu

declaration must be sync

Implementation

void menu(String name, void Function() body,
    {String? cmd, bool? group, @Deprecated('Dev only') bool? solo}) {
  _declarer!.menu(name, body, cmd: cmd, group: group, solo: solo);
}