title: Flutter:- How to check Gif is loaded or not
body: <p>I did the display gif in image widget and I want to check the gif is loaded or not.</p>
  <pre><code> Image.asset(
      &quot;assets/mmgif/splash_final.gif&quot;,gaplessPlayback: true,
      frameBuilder: (BuildContext context, Widget child, int frame,
          bool wasSynchronouslyLoaded) {
         
        if (wasSynchronouslyLoaded) {
          MyPrint(tag: &quot;CheckLoaded&quot;, value: wasSynchronouslyLoaded.toString());
          return child;
        }
        return AnimatedOpacity(
          child: child,
          opacity: frame == null ? 0 : 1,
          duration: const Duration(seconds: 1),
          curve: Curves.easeOut,
        );
      },
    )
  </code></pre>