Location.rel constructor

const Location.rel({
  1. double x = 0,
  2. double y = 0,
  3. double z = 0,
})

The Location class provides a wrapper for relative(~ ~ ~) coordinates:

Implementation

const Location.rel({this.x = 0, this.y = 0, this.z = 0})
    : location = '~$x ~$y ~$z';