numFrames property
      
      int
      get
      numFrames
      
    
    
The number of frames in this Image. An Image will have at least one frame, itself, so it's considered animated if it has more than one frame.
Implementation
int get numFrames => frames.length;