copy method Null safety

  1. @override
PositionParser copy()
override

Returns a shallow copy of the receiver.

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

Implementation

@override
PositionParser copy() => PositionParser();