calculateShape method
Implementation
void calculateShape(Offset offset, Size size) {
outerRect = offset & size;
innerRect = outerRect.deflate(strokeWidth);
outerPath = shape.getOuterPath(outerRect);
innerPath = shape.getOuterPath(innerRect);
}