title: Standard function to throw an exception if an expression is false?
body: <p>The assert statement method only works in development.  Is there a standard Dart function which works like assert but which will be executed when running production code?  </p>
  
  <p>I'm looking for something like this:</p>
  
  <pre><code>void myFunc(List myList) {
    validate(myList.isNotEmpty);
    ...
  }
  </code></pre>