Updated to work with new Dart and new three.Dart versions.