dart_lcg 0.1.2 dart_lcg: ^0.1.2 copied to clipboard
Simple dart Project to Illustrate how to publish a dart package.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart_lcg
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart_lcg: ^0.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:dart_lcg/lcg.dart';
import 'package:dart_lcg/lcg/lcg.dart';
import 'package:dart_lcg/lcg/lcg_interface.dart';