draw method
Implementation
void draw(Canvas canvas, Size size) {
if (_state._images.length > 1) {
if (_state._particle.isNotEmpty) {
canvas.save();
Rect rect = Offset.zero & size;
canvas.drawRect(rect, Paint());
for (var element in _state._particle) {
move(element);
ui.Offset offset = ui.Offset(element.x!, element.y!);
canvas.save();
canvas.scale(element.scale!, element.scale);
canvas.drawImage(element.image!, offset, _paint);
canvas.restore();
}
canvas.restore();
}
}
}