Getting Started
Initial setup
Add all necessary darwin packages to your pubspec.yaml. Remember to replace any by the versions you are actually depending on.
pubspec.yaml
After that, run dart pub get
to retrieve all package dependencies. And perform initial code generation.
In your main method, you can now configure and execute your darwin application after importing the generated darwin.g.dart
file.
main.dart
Running
You must trigger the code generator before running or building your dart application for changes to apply. Following command will trigger the build runner:
Last updated