complemented method
Convert to a new complementary base.
type
: return base type. DNA or RNA.
Implementation
Nucleotide complemented(EnumNucleotideSequenceType type) {
if (type == EnumNucleotideSequenceType.dna) {
return Nucleotide(base.complementDNA());
} else {
return Nucleotide(base.complementRNA());
}
}