auto_interop_generator 0.2.5
auto_interop_generator: ^0.2.5 copied to clipboard
Code generator for auto_interop — auto-generates type-safe Dart bindings from native package APIs (npm, CocoaPods, Gradle).
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate auto_interop_generatorUse it
The package has the following executables:
$ ag
$ generate
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add auto_interop_generatorWith Flutter:
$ flutter pub add auto_interop_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
auto_interop_generator: ^0.2.5Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:auto_interop_generator/auto_interop_generator.dart';