shift method
Returns a new RRect translated by the given offset.
Implementation
RRect shift(Offset offset) {
return new RRect.fromLTRBAndCorners(
_value[0] + offset.dx,
_value[1] + offset.dy,
_value[2] + offset.dx,
_value[3] + offset.dy,
topLeft: new Radius.elliptical(
_value[4],
_value[5]
),
topRight: new Radius.elliptical(
_value[6],
_value[7]
),
bottomRight: new Radius.elliptical(
_value[8],
_value[9]
),
bottomLeft: new Radius.elliptical(
_value[10],
_value[11]
)
);
}