title: I'm getting a hint that declaration 'build' , 'initstate', 'dispose', loadModel' isn't referenced. what should i do?
body: <p><strong><em>This is my code.</em>
  I am doing this in android studio using flutter project.<br />
  I'm getting a warning in my code that declaration 'build' , 'initstate', 'dispose', loadModel' isn't referenced. what should i do? and when I run the project, it shows HomePage State error.How can this be resolved?</strong></p>
  <pre><code>import 'package:flutter/material.dart';
  import 'package:camera/camera.dart';
  import 'package:flutter/services.dart';
  import 'package:tflite/tflite.dart';
  import 'dart:async';
  //import 'lib.dart';
  
  import 'main.dart';
  
  
  
  class HomePage extends StatefulWidget {
    const HomePage({Key? key}) : super(key: key);
  
    @override
    _HomePageState createState() =&gt; _HomePageState();
  }
  
  class _HomePageState extends State&lt;HomePage&gt;
  {
    late CameraController cameraController;
    //defining variables
    late CameraImage imgCamera;
    bool isWorking=false;
    late double imgHeight;
    late double imgWidth;
    late List recognitionsList;
  
  
  
    initCamera()
    {
      cameraController=CameraController(cameras[0],ResolutionPreset.medium);
      cameraController.initialize().then((value)
      {
        if(!mounted)
          {
            return;
          }
        setState(()
        {
           cameraController.startImageStream((imageFromStream)=&gt;
           {
             if(!isWorking)
               {
                 isWorking=true,
                 imgCamera= imageFromStream,
                 runModelOnStreamFrame(),
               }
           });
        });
      });
    }
    runModelOnStreamFrame() async {
      imgHeight = imgCamera.height + 0.0;
      imgWidth=imgCamera.width + 0.0;
      recognitionsList= (await Tflite.detectObjectOnFrame(bytesList:imgCamera.planes.map((plane){
        return  plane.bytes;
      }).toList() ,
  
      model:&quot;SSDMobileNet&quot;, //change it to other name assets/ssd_mobilenet.tflite
      imageHeight: imgCamera.height,
      imageWidth: imgCamera.width,
      imageMean:  127.5,
      imageStd: 127.5,
      numResultsPerClass: 1,
  
      threshold: 0.4,
      ))!;
      isWorking=false;
      setState(()
      {
        imgCamera;
  
      });
  
    Future &lt;dynamic&gt; loadModel() async
    {
      Tflite.close();
      try{
        late String response;
        response = (await Tflite.loadModel(
          model:&quot;assets/ssd_mobilenet.tflite&quot;,
          labels: &quot;assets/ssd_mobilenet.txt&quot;
  
        ))!;
        print(response);
      }
     // catch{}
      on PlatformException
      {
        print(&quot;unable to load model&quot;);
      }
    }
  
    @override
    void dispose()
      {
       super.dispose();
       cameraController.stopImageStream();
       Tflite.close();
      }
  
  
    @override
    void initState()
    {
      super.initState();
      initCamera();
    }
  
    List&lt;Widget&gt; displayBoxesAroundRecognizedObjects(Size screen)
      {
          if(recognitionsList == null) return[];
  
          if(imgHeight == null || imgWidth == null) return[];
  
  
          double factorX = screen.width;
          double factorY = imgHeight;
          Color colorPick = Colors.lightGreenAccent;
  
          return recognitionsList.map((result)
          {
            return Positioned(
              left:result[&quot;rect&quot;][&quot;x&quot;] * factorX,
              top:result[&quot;rect&quot;][&quot;y&quot;] * factorY,
              width:result[&quot;rect&quot;][&quot;w&quot;] * factorX,
              height:result[&quot;rect&quot;][&quot;h&quot;] * factorY,
            child: Container(
              decoration: BoxDecoration(
                borderRadius: BorderRadius.all(Radius.circular(10.0)),
                border: Border.all(color:Colors.lightGreenAccent,width:2.0),
              ),
  
              child:Text(
                &quot;${result['detectedClass']} ${(result['confidenceInClass'] * 100).toStringAsFixed(0)}%&quot;,
                style:TextStyle(
                  background:Paint()..color= colorPick,
                  color:Colors.black,
                  fontSize:16.0,
                ),
              ),
            ),
  
            );
          }).toList();
      }
    @override
    //build=null;
    Widget build(BuildContext context)
    {
      Size size = MediaQuery.of(context).size;
      List&lt;Widget&gt; stackChildrenWidgets =[];
      stackChildrenWidgets.add(
        Positioned(
          top: 0.0,
          left : 0.0,
          width:size.width,height:size.height-100,
          child:Container(
            height:size.height-100,
            child:(!cameraController.value.isInitialized)
                ? new Container()
                : AspectRatio(
              aspectRatio: cameraController.value.aspectRatio,
              child: CameraPreview(cameraController),
  
            ),
          ),
  
        ),
      );
        if(imgCamera != null)
          {
            stackChildrenWidgets.addAll(displayBoxesAroundRecognizedObjects(size));
          }
  
  
      return SafeArea(
          child: Scaffold
            (
            backgroundColor: Colors.black,
            body: Container(
              margin : EdgeInsets.only(top:50),
              color:Colors.black,
              child:Stack(
                children:stackChildrenWidgets,
              ),
  
            ),
          ),
      );
    }
  }
  
    @override
    Widget build(BuildContext context) {
      // TODO: implement build
      throw UnimplementedError();
    }}
  </code></pre>
  <p><strong>please help me with this.</strong></p>