TriangleShape constructor

TriangleShape({
  1. double percentBottom = 0.5,
  2. double percentLeft = 0,
  3. double percentRight = 0,
})

Creates a new TriangleShape with customizable vertex positions.

percentBottom - Horizontal position of bottom vertex (0.0 to 1.0). Defaults to 0.5. percentLeft - Vertical position of left vertex (0.0 to 1.0). Defaults to 0.0. percentRight - Vertical position of right vertex (0.0 to 1.0). Defaults to 0.0.

All percentage values should be between 0.0 and 1.0 for best results.

Implementation

TriangleShape({
  this.percentBottom = 0.5,
  this.percentLeft = 0,
  this.percentRight = 0,
});