CustomAction class

Represents a custom action that is defined by the user.

The user can define a custom action by providing a name and a function that takes a list of parameters and a RuleContext and returns a Future. The function should return the result of the action.

Implemented types

Constructors

CustomAction.new(String _action, Future _function(List, RuleContext))

Properties

action String
The name of the action.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(List parameters, RuleContext context) Future<ActionResult>
Execute the action with the given parameters and context.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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