copy method

creates a copy of the object (classmethod)

Implementation

TxWitnessInput copy() {
  return TxWitnessInput(stack: List.from(stack, growable: false));
}