It's similar to c++ formatting here. Just add 4 spaces before ".then(".

Here's some guide:
https://www.dartlang.org/articles/style-guide/
(I'm not sure we follow them strictly).