opt method

  1. @override
ListParser<T> opt({
  1. bool backtrack = true,
})
override

Produces an optional copy of this parser.

If backtrack is true (default), then a failed parse will not modify the scanner state.

Implementation

@override
ListParser<T> opt({bool backtrack = true}) => _ListOpt(this, backtrack);