Transform : explicitly implement Function to workaround a dart2js bug