ActorConfig class
Configuration that can be passed to customize the Actor behaviour.
- Inheritance
-
- Object
- CallConfig
- ActorConfig
Constructors
- ActorConfig({Agent? agent, PollStrategyFactory? pollingStrategyFactory, Principal? canisterId, Principal? effectiveCanisterId, CallConfig callTransform(String methodName, List args, CallConfig callConfig)?, CallConfig queryTransform(String methodName, List args, CallConfig callConfig)?})
- ActorConfig.fromMap(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.
getter/setter pairinherited
- callTransform ↔ CallConfig Function(String methodName, List args, CallConfig callConfig)?
-
An override function for update calls' CallConfig. This will be called on every calls.
getter/setter pair
- canisterId ↔ Principal?
-
The canister ID of this Actor.
getter/setter pairinherited
- effectiveCanisterId ↔ Principal?
-
The effective canister ID. This should almost always be ignored.
getter/setter pairinherited
- 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.
getter/setter pairinherited
- queryTransform ↔ CallConfig Function(String methodName, List args, CallConfig callConfig)?
-
An override function for query calls' CallConfig. This will be called on every query.
getter/setter pair
- 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