around<E1, E2> method

AroundParser<E1, E2> around<E1, E2>(
  1. Parser<E1> p1,
  2. Parser<E2> p2
)

Creates the AroundParser parser.

final p = colon.around(string, value);

Implementation

AroundParser<E1, E2> around<E1, E2>(Parser<E1> p1, Parser<E2> p2) =>
    AroundParser(p1, this, p2);