app_intents_codegen 0.1.0
app_intents_codegen: ^0.1.0 copied to clipboard
Code generator for Flutter AppIntents. Produces Swift and Dart code from @IntentSpec and @EntitySpec annotations.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate app_intents_codegenUse it
The package has the following executables:
$ generate_swift
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add app_intents_codegenThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
app_intents_codegen: ^0.1.0Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:app_intents_codegen/app_intents_codegen.dart';