CanisterActor constructor
CanisterActor(
- ActorConfig config,
- Service service, {
- CreateActorMethod? createActorMethod,
Implementation
CanisterActor(
ActorConfig config,
Service service, {
CreateActorMethod? createActorMethod,
}) : super(ActorMetadata(service: service, config: config)) {
final fields = service.fields;
for (final e in fields) {
methodMap.putIfAbsent(
e.key,
() => (createActorMethod ?? _createActorMethod)(this, e.key, e.value),
);
}
}