RotatingSquare constructor

const RotatingSquare({
  1. Key? key,
  2. Color squareColor = Colors.black,
  3. double squareSize = 30.0,
  4. Duration duration = const Duration(seconds: 1),
})

Creates a new instance of RotatingSquare.

Example:

RotatingSquare(
  squareColor: Colors.red,
  squareSize: 50.0,
  duration: Duration(seconds: 2),
)

Implementation

const RotatingSquare({
  super.key,
  this.squareColor = Colors.black,
  this.squareSize = 30.0,
  this.duration = const Duration(seconds: 1),
});