fetchImages method

Future<void> fetchImages()

Implementation

Future<void> fetchImages() async {
  var image1 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/birthday1.png');
  var image2 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/birthday2.png');
  var image3 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/birthday3.png');
  var image4 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/birthday4.png');
  var image5 = await ImageUtils.getImage('packages/dt_animate_kit/assets/images/birthday5.png');

  _images.clear();
  _images.add(image1);
  _images.add(image2);
  _images.add(image3);
  _images.add(image4);
  _images.add(image5);
  _state = EffectsState.init;
  setState(() {});
}