getTrianglePath method

Path getTrianglePath(
  1. double x,
  2. double y
)

Implementation

Path getTrianglePath(double x, double y) {
  return Path()
    ..moveTo(0, 0)
    ..lineTo(x, 0)
    ..lineTo(0, y)
    ..lineTo(0, y);
}