PulsatingSquareIndicator constructor

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

Creates a pulsating square loading indicator.

size - The width and height of the container (default: 60) color - The color of the square (default: Colors.black) duration - Animation cycle duration (default: 1000ms)

Implementation

const PulsatingSquareIndicator({
  super.key,
  this.size = 60,
  this.color = Colors.black,
  this.duration = const Duration(milliseconds: 1000),
});