title: How to return function in Dart?
body: <p>As <strong>Dart docs</strong> <code>describe</code> it, as this being <strong>purely OOP language</strong>, <code>Functions</code> are also <code>object</code>. </p>
  
  <p>This can be done in JS like this : </p>
  
  <pre><code>function functionReturningFunctionJS() {
    return function functionReturnedByFunctionJS() {
        return "This is function returned by function";
    }
  }
  </code></pre>
  
  <p>But I could not return function from function like this n dart: </p>
  
  <pre><code>Function functionReturningFunctionDart() {
    return  functionReturnedByFunctionDart(){
      return "This is function Returned By function";
    }
  } 
  </code></pre>
  
  <p>What is the right way to do it?</p>