title: void function not printing because cant return value but when i make string or int function it print null or return value at the end automatically
body: <p>New to dart, take following code as example, //void function doesnt work and int/string function either returns null that is printed or value return which is automatically printed as can be seen in the output.</p>
  <pre><code>class Microphones{
    String? name;
    String? color;
    int? model;
    String printEverything(){
      print(name);
      return &quot; &quot;; 
    }
    int? printint(){ 
      print(model); 
  }
  }
  
  void main() {
    var mic1=Microphones();
    print(mic1.name);
    mic1.name=&quot;Yeti&quot;;
    mic1.color=&quot;black&quot;;
    mic1.model=26;
  
    print(mic1.name);
    print(mic1.color);
    print(mic1.model);
    print(mic1.printEverything());
    print(mic1.printint());
  }
  
  output:
  null
  Yeti
  black
  26
  Yeti
   
  26
  null
  </code></pre>
  <p>i highly appreciate your replies/help in this regard.</p>