SpinningTriangle constructor

const SpinningTriangle({
  1. Key? key,
  2. Color color = Colors.black,
  3. double size = 60.0,
  4. Duration duration = const Duration(milliseconds: 500),
})

Creates a new instance of SpinningTriangle.

color is the color of the triangle. Defaults to Colors.black. size is the size of the triangle. Defaults to 60.0. duration is the duration of the spin. Defaults to 500 milliseconds.

Implementation

const SpinningTriangle({
  super.key,
  this.color = Colors.black,
  this.size = 60.0,
  this.duration = const Duration(milliseconds: 500),
});