copy method

SecretKeyData copy()

Returns a copy of this object.

Calling destroy on the copy does not affect the original object and vice-versa.

Implementation

SecretKeyData copy() {
  return SecretKeyData(
    Uint8List.fromList(bytes),
    overwriteWhenDestroyed: true,
    debugLabel: debugLabel,
  );
}