CanisterActor constructor

CanisterActor(
  1. ActorConfig config,
  2. Service service, {
  3. 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),
    );
  }
}