copyWithService method

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

Implementation

Keychain copyWithService(
  String name,
  String derivationPath, {
  String curve = 'ed25519',
  String hashAlgo = 'sha256',
}) {
  return copyWith(
    services: <String, Service>{
      ...services,
      name: Service(
        derivationPath: derivationPath,
        curve: curve,
        hashAlgo: hashAlgo,
      ),
    },
  );
}