item function

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

Declare a menu item

can return a future

@param cmd command shortcut (instead of incremental number)

Implementation

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