title: Compare a value from a return function
body: <p>I have the following code where the return plano;* gives me what I want. </p>
  
  <pre><code>userInfoConst() async {
      try {
        var uid = await AuthenticationProvider().getUserId();
        ApiProvider apiProvider = ApiProvider();
        final usuarioModel =
            await apiProvider.getRequest('usuarios/$uid');
        UsuarioModel model = UsuarioModel.fromJson(usuarioModel.data);
        var plano =  model.plano;
        print(plano);
        return plano;
    }
  </code></pre>
  
  <p>And I want to compare the value in the if conditional but the values don't match, they are not being "compared" and never executes the code bellow. What am I doing wrong?</p>
  
  <pre><code>if (ApplicationConsts().userInfoConst() == 'FREE') {
        _banner
          ..load()
          ..show(anchorType: AnchorType.bottom);
      }
  </code></pre>