ActorConfig class

Configuration that can be passed to customize the Actor behaviour.

Inheritance

Constructors

ActorConfig({Agent? agent, PollStrategyFactory? pollingStrategyFactory, Principal? canisterId, Principal? effectiveCanisterId, bool callSync = true, CallConfig callTransform(String methodName, List args, CallConfig callConfig)?, CallConfig queryTransform(String methodName, List args, CallConfig callConfig)?})
const
ActorConfig.fromJson(Map map)
factory

Properties

agent Agent?
An agent to use in this call, otherwise the actor or call will try to discover the agent to use.
finalinherited
callSync bool
Whether to call the endpoint synchronously.
finalinherited
callTransform CallConfig Function(String methodName, List args, CallConfig callConfig)?
An override function for update calls' CallConfig. This will be called on every calls.
final
canisterId Principal?
The canister ID of this Actor.
finalinherited
effectiveCanisterId Principal?
The effective canister ID. This should almost always be ignored.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
pollingStrategyFactory PollStrategyFactory?
A polling strategy factory that dictates how much and often we should poll the read_state endpoint to get the result of an update call.
finalinherited
queryTransform CallConfig Function(String methodName, List args, CallConfig callConfig)?
An override function for query calls' CallConfig. This will be called on every query.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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