copy method

  1. @override
PickParser<R> copy()
override

Returns a shallow copy of the receiver.

Override this method in all subclasses, return its own type.

Implementation

@override
PickParser<R> copy() => PickParser<R>(delegate, index);