RestAction class

Inheritance

Constructors

RestAction(List<Widget>? writable, Widget _rest)
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):
RestAction.all(List<Widget> writable, 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):

Properties

called bool
Contains the Information, if this RestAction is already called (and can't be called again)
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writable List<Widget>?
The writable list the RestAction writes it's contents on
getter/setter pairoverride

Methods

generate(Context context) Widget
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queue([List<Widget>? writable]) → void
Execute this method to add this to the WidgetList (can use default list or as parameter given list) This method can only be executed once, if it is executed multiple times you will get an Error. You can read out if it is already executed in the boolean Called Example for a queue method:
inherited
toMap() → dynamic
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

autoQueue bool
If autoQueue is enabled, you don't have to manually run the queue() method on your RestActions. Normal example without autoQueue
getter/setter pair