Pure Actionscript to Dart Conversion Helper.