title: Flutter : "Instance member 'playing' can't be accessed using static access."
body: <p>I try to create Text to speech for my Flutter Project ,  i cant call "playing" functions in view.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>void initSpeechRecognizer(){
      FlutterTts flutterTts = FlutterTts();
  
      Future _speak() async{
  
        var result = await flutterTts.speak("Hello World");
  
        if (result == 1) setState(() =&gt; flutterTts = _VoiceHomeState.playing);
  
        List&lt;dynamic&gt; languages = await flutterTts.getLanguages;
  
        await flutterTts.setLanguage("id-ID");
  
        await flutterTts.setSpeechRate(1.0);
  
        await flutterTts.setVolume(1.0);
  
        await flutterTts.setPitch(1.0);
  
        await flutterTts.isLanguageAvailable("id-ID");
  
      }
  
    }
  
  }
  </code></pre>