TriangleShape constructor

TriangleShape(
  1. Color color
)

Constructor Expects color that the triangle will be filled with

Implementation

TriangleShape(Color color) {
  _painter = Paint()
    ..color = color
    ..style = PaintingStyle.fill;
}