Description
To turn on checked mode in Dartium, you have to set an environment variable. This means the checked mode setting applies globally to all web pages and apps, and has to be specified by the end user not the developer.
Something is not right with this picture :)
I'd like to be able to configure this in the HTML page. For now it'd be nice to have something simple like this:
navigator.webkitStartDart({ checked: true });
Ultimately it might make more sense to be specified per script tag. That's kind of tricky but here are some ideas:
... with a new attribute:
<script type="application/dart" src="list_example.dart" flags="checked">
... abusing mime-type:
<script type="application/dart+checked" src="list_example.dart">
... or have a way to declare the mode in the Dart source with a # directive.
<script type="application/dart">
#option checked
#import ...