pkl_dart 0.1.0-pre
pkl_dart: ^0.1.0-pre copied to clipboard
(Unofficial) Support for Pkl in Dart
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate pkl_dartUse it
The package has the following executables:
$ pkl-gen-dart
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add pkl_dartWith Flutter:
$ flutter pub add pkl_dartThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
pkl_dart: ^0.1.0-preAlternatively, 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:pkl_dart/pkl_dart.dart';