addService method

void addService(
  1. String name,
  2. String derivationPath, {
  3. String curve = 'ed25519',
  4. String hashAlgo = 'sha256',
})

Implementation

void addService(String name, String derivationPath,
    {String curve = 'ed25519', String hashAlgo = 'sha256'}) {
  services ??= <String, Service>{};
  services!.addAll(<String, Service>{
    name: Service(
        derivationPath: derivationPath, curve: curve, hashAlgo: hashAlgo)
  });
}