removing deprecated dart2js method