copy method

  1. @override
Parser<T> copy()
override

Returns a shallow copy of the receiver.

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

Implementation

@override
Parser<T> copy() =>
    WhereParser<T>(delegate, predicate, failureMessage, failurePosition);