big_fraction 6.0.0 big_fraction: ^6.0.0 copied to clipboard
A package that helps you working with fractions and mixed fractions. Fork that uses BigInt for numerator and denominator.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add big_fraction
With Flutter:
$ flutter pub add big_fraction
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
big_fraction: ^6.0.0
Alternatively, 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:big_fraction/big_fraction.dart';