Consider using lazy initialization for the browser variable
kasperl opened this issue · comments
Kasper Lund commented
Maybe something like this:
final Browser browser = _computeBrowser();
Browser _computeBrowser() {
...
}
See http://news.dartlang.org/2012/02/static-variables-no-longer-have-to-be.html for more details.