$slot method

WidgetElement $slot(
  1. int id
)
inherited

Creates a slot for inserting a side Widget.

Implementation

WidgetElement $slot(int id) {
  _node.children?.add(VirtualNodeSlot(value: id.toString()));
  return this;
}