title: initState() not show in Autosuggetion
body: <p>I try to override <code>initState()</code> inside <code>_SplashScreenState</code>,  but it not show in suggestions list, i try invalid catches/Restart too. </p>
  
  <pre><code>import 'package:coupfferapp/screen/home.dart';
  import 'package:flutter/cupertino.dart';
  import 'package:flutter/material.dart';
  import 'package:shimmer/shimmer.dart';
  
  class SplashScreen extends StatefulWidget {
  @override
  _SplashScreenState createState() =&gt; _SplashScreenState();
  
    }
  
     class _SplashScreenState extends State&lt;SplashScreen&gt; {
  
  
  
  @override
   void initState() {
   super.initState();
  _checkLoginSession().then((status) {
    _navigateToHome();
    });
  }
  
  Future&lt;bool&gt; _checkLoginSession() async {
  await Future.delayed(Duration(microseconds: 5000), () {});
  return true;
     }
  
  void _navigateToHome() {
  Navigator.of(context).pushReplacement(
      MaterialPageRoute(builder: (BuildContext context) =&gt; Home()));
  }
  
   @override
   Widget build(BuildContext context) {
    return Scaffold(
    body: Container(
      child: Stack(
        alignment: Alignment.center,
        children: &lt;Widget&gt;[
          Container(
            color: Colors.white,
          ),
    //            Opacity(
    //                    opacity: .9,
    //                    child: Image.asset('images/splash.png', fit: 
     BoxFit.cover)),
          Shimmer.fromColors(
              child: Container(
                padding: EdgeInsets.all(16.0),
                child: Text(
                  "Mayur",
                  style: TextStyle(
                      fontSize: 90.0,
                      fontFamily: 'Calistoga',
                      shadows: &lt;Shadow&gt;[
                        Shadow(
                            blurRadius: 18.0,
                            color: Colors.black26,
                            offset: Offset.fromDirection(120, 12))
                      ]),
                ),
              ),
              baseColor: Colors.orange,
              highlightColor: Colors.red)
        ],
       ),
      ),
     );
    }
  }
  </code></pre>