addFrame method Null safety

void addFrame(
  1. Image image
)

Add a frame to the animation.

Implementation

void addFrame(Image image) {
  frames.add(image);
}