AgentFactory constructor

AgentFactory({
  1. required String canisterId,
  2. required String url,
  3. required Service idl,
  4. Identity? identity,
  5. bool? debug = true,
})

Implementation

AgentFactory(
    {required String canisterId,
    required String url,
    required Service idl,
    Identity? identity,
    bool? debug = true}) {
  _setCanisterId(canisterId);
  _identity = identity ?? AnonymousIdentity();
  _idl = idl;
  _debug = debug ?? true;
  _url = url;
}