Can you make sure that you have the 'remove trailing whitespace' setting enabled in the dart editor?