then<R9> method
Returns a parser that consumes the receiver followed by other in
sequence and returns a SequenceParser9 with the 9 positional
parse results.
Flattens into a strictly typed Record with 9 elements, preserving static type information.
For example,
the parser char('a').then(char('b')).then(char('c')).then(char('d')).then(char('e')).then(char('f')).then(char('g')).then(char('h')).then(char('i'))
returns ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i')
for the input 'abcdefghi'.
Implementation
@useResult
SequenceParser9<R1, R2, R3, R4, R5, R6, R7, R8, R9> then<R9>(
Parser<R9> other,
) => SequenceParser9<R1, R2, R3, R4, R5, R6, R7, R8, R9>(
parser1,
parser2,
parser3,
parser4,
parser5,
parser6,
parser7,
parser8,
other,
);