clone method
Implementation
List<T> clone({bool immutable = false}) {
final value = this;
if (value case BuBytes()) {
return (value as BuBytes).cloneBytes(immutable: immutable) as List<T>;
}
if (value case SecretBytes()) {
return (value as SecretBytes).toBytes(immutable: immutable) as List<T>;
}
if (immutable) return this.immutable;
return List<T>.from(this);
}