dart2_constant 1.0.1+dart2 dart2_constant: ^1.0.1+dart2 copied to clipboard
A polyfill for Dart 2 constant names.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart2_constant
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart2_constant: ^1.0.1+dart2
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:dart2_constant/async.dart';
import 'package:dart2_constant/convert.dart';
import 'package:dart2_constant/core.dart';
import 'package:dart2_constant/developer.dart';
import 'package:dart2_constant/html.dart';
import 'package:dart2_constant/io.dart';
import 'package:dart2_constant/isolate.dart';
import 'package:dart2_constant/math.dart';
import 'package:dart2_constant/svg.dart';
import 'package:dart2_constant/typed_data.dart';
import 'package:dart2_constant/web_gl.dart';
import 'package:dart2_constant/web_sql.dart';