renderHexagon method

Path renderHexagon(
  1. Size size
)

Implementation

Path renderHexagon(Size size) {
  final path = Path();
  path.lineTo(0, 0);
  path.lineTo(size.width, 0);
  path.lineTo(size.width, size.height * 0.8);
  path.lineTo(size.width * 0.8, size.height);
  path.lineTo(size.width * 0.2, size.height);
  path.lineTo(0, size.height * 0.8);
  path.lineTo(0, 0);

  path.close();
  return path;
}