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 this.idl,
  Identity? identity,
  bool? debug = true,
})  : canisterId = Principal.fromText(canisterId),
      identity = identity ?? const AnonymousIdentity(),
      _debug = debug ?? true,
      _url = url;