candid_dart_core 1.1.2 candid_dart_core: ^1.1.2 copied to clipboard
Provide the `did2dart` method to process `Candid` content, and quickly generate corresponding Dart code.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add candid_dart_core
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
candid_dart_core: ^1.1.2
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:candid_dart_core/antlr/CandidBaseVisitor.dart';
import 'package:candid_dart_core/antlr/CandidLexer.dart';
import 'package:candid_dart_core/antlr/CandidParser.dart';
import 'package:candid_dart_core/antlr/CandidVisitor.dart';
import 'package:candid_dart_core/codegen/codegen.dart';
import 'package:candid_dart_core/codegen/consts.dart';
import 'package:candid_dart_core/codegen/extension.dart';
import 'package:candid_dart_core/codegen/log.dart';
import 'package:candid_dart_core/codegen/option.dart';
import 'package:candid_dart_core/codegen/types.dart';
import 'package:candid_dart_core/codegen/visitor.dart';
import 'package:candid_dart_core/core.dart';