Flush Method
Flushes the parser and checks its end state.
Syntax
async x12validator.flush(): Promise<void>
Remarks
When Flush is called, the parser flushes all its buffers, firing events as necessary, and then checks its end state.
Any extra un-parsed data will be populated in the ExtraData property after this method is called.