translate abstract method

Shape translate({
  1. double x = 0,
  2. double y = 0,
})

translate the shape with x in horizontally and y vertically

Implementation

Shape translate({double x = 0, double y = 0});