listOfAnimatedSquare method

List<Widget> listOfAnimatedSquare({
  1. required ClockLoaderModel clockLoaderModel,
})

generate the all particles widget and make one list of that

Implementation

List<Widget> listOfAnimatedSquare(
    {required ClockLoaderModel clockLoaderModel}) {
  List<Widget> listOfWidget = [];

  listPath.mapIndexed((index, pathElement) {
    listOfWidget.add(
      CustomPaint(
        painter: AnimatedShapePainter(
            animation: listOfAnimations[index],
            path: pathElement,
            clockLoaderModel: clockLoaderModel),
        child: Container(),
      ),
    );
  }).toList();

  return listOfWidget;
}