address dart2js compiler warning