refactor(all): use dart idioms