initData method

Future<void> initData()

Implementation

Future<void> initData() async {
  var image1 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/bitrhday_two_1.png');
  var image2 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/bitrhday_two_2.png');
  var image3 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/bitrhday_two_3.png');
  var image4 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/bitrhday_two_6.png');
  var image5 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/bitrhday_two_5.png');

  _images.clear();
  _images.add(image1);
  _images.add(image2);
  _images.add(image3);
  _images.add(image4);
  _images.add(image5);
  initParams(_particles, widget.startX, widget.startY);
  initParams(_particles1, widget.startX1, widget.startY1);
  initParams(_particles2, widget.startX2, widget.startY2);
}