dart2js_info 0.6.1 dart2js_info: ^0.6.1 copied to clipboard
Libraries and tools to process data produced when running dart2js with --dump-info.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate dart2js_info
Use it
The package has the following executables:
$ dart2js_info
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart2js_info
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart2js_info: ^0.6.1
Alternatively, 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:dart2js_info/binary_serialization.dart';
import 'package:dart2js_info/deferred_library_check.dart';
import 'package:dart2js_info/info.dart';
import 'package:dart2js_info/json_info_codec.dart';
import 'package:dart2js_info/proto_info_codec.dart';