parseAsync method
Implementation
@override
void parseAsync(State<ChunkedData<I>> state, ResultCallback<List<O>> onDone) {
final input = state.input;
final list = <O>[];
void parse() {
p.parseAsync(state, (result) {
if (result == null) {
final result = list.isNotEmpty ? Result(list) : null;
onDone(result);
} else {
list.add(result.value);
input.handle(parse);
}
});
}
parse();
}