ApiPrivateKey.fromValue constructor

ApiPrivateKey.fromValue({
  1. required String key,
  2. required String fingerprint,
})

key ==> valor da chave

Implementation

factory ApiPrivateKey.fromValue({
  required String key,
  required String fingerprint,
}) {
  key = key.replaceAll(regExpForClearKey, '');
  return ApiPrivateKey._(
    key: key,
    keyBytes: key.base64ToBytes,
    fingerprint: fingerprint,
  );
}