title: Can we make a parameter compulsory on conditions?
body: <p>As we know we can use ternary operator like <code>?</code> and <code>:</code> in Dart for control flow, like :</p>
  <pre><code>String name  = 1 == 1 ? &quot;Jhon&quot; : &quot;Ryan&quot;;
  </code></pre>
  <p>Is there anyway to make a parameter compulsory on condition ?</p>
  <p><strong>The Codes Below Did Not Work, It's Here Just For The Example</strong></p>
  <pre><code>class Person{
    final String name;
    final int age; 
    const Person({ this.name, name != null ? @required this.age : this.age});
  }
  </code></pre>