chore(style): fix coding style to use more dart idioms