vex_channel 1.0.0
vex_channel: ^1.0.0 copied to clipboard
VexChannel — Zero-boilerplate platform channels for Flutter. Write pure Dart, access every native API on Android, iOS, macOS, Windows, Linux and Web without touching Kotlin/Swift/C++ once.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate vex_channelUse it
The package has the following executables:
$ generate
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add vex_channelThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
vex_channel: ^1.0.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:vex_channel/vex_channel.dart';