forEach method

RestActionAble forEach(
  1. dynamic fn(
    1. Entity p,
    2. List<Widget> strait
    )
)

Executes given content for all entities matching the selector (Strait function)

entity.forEach((LivingEntity e, List<Widget> strait) {
 e.kill().queue();
}).queue();

Implementation

RestActionAble forEach(Function(Entity p, List<Widget> strait) fn) =>
    asStrait(run: (List<Widget> strait) => fn(Entity.Self(), strait));