RestAction.all constructor

RestAction.all(
  1. List<Widget> writable,
  2. List<Widget> rest
)

RestActions are a big part of the Strait system, you have to pull your widgets anywhere, and the RestActions do that for you. You activate them by calling the queue function on them. A RestAction can only be executed once, it will throw an Exception if it is executed multiple times. Example for a RestAction (The kill function here returns a RestAction). There are multiple ways of using it. The first is, just to execute it (only Possible inside of Strait content):

Entity.Selected().kill().queue();

You can also use the queue function on a List, so the contents are written inside it:

List<Widget> widget = [];
Entity.Selected().kill().queue(cont);

Because the RestAction has the Widget as superclass, you can also use it like a normal widget, for example:

For.of([
Entity.Selected().kill(),
...
]);

Creation Example

RestAction.all([], [
Kill(...),
Teleport(...)
])

Implementation

///Example for a RestAction (The kill function here returns a RestAction). There are multiple ways of using it. The first is, just to execute it (only Possible inside of Strait content):
///```dart
///Entity.Selected().kill().queue();
///```
///You can also use the queue function on a List, so the contents are written inside it:
///```dart
///List<Widget> widget = [];
///Entity.Selected().kill().queue(cont);
///```
///Because the RestAction has the Widget as superclass, you can also use it like a normal widget, for example:
///```dart
///For.of([
/// Entity.Selected().kill(),
/// ...
///]);
///```

///Creation Example
///```dart
///RestAction.all([], [
/// Kill(...),
/// Teleport(...)
///])
///```

RestAction.all(List<Widget> writable, List<Widget> rest)
    : this(writable, For.of(rest));