Generate dart code with dart.