MethodRunner class
Constructors
-
MethodRunner([String prefix = ''])
-
Holds a Map of methods names and their callbacks to be called
by calling the method by its name.
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
prefix
→ String
-
Used to prefix all method names.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call<R>(String method, [dynamic params])
→ Future<R?>
-
Calls or executes a
method
by its name.
-
clear()
→ void
-
Clear all registered methods
-
has(String method)
→ bool
-
Checks if
method
is registered.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
register<R>(String method, JsonRpcCallback<R> callback)
→ void
-
Register a new
method
by its name and its callback
.
-
remove(String method)
→ void
-
Removes a method by its name.
-
toString()
→ String
-
A string representation of this object.
inherited