optional property

Parser<E, A?> get optional

Try this parser; succeed with null if it fails (without consuming).

Implementation

Parser<E, A?> get optional => Optional<E, A>(this);