libcalculator 1.2.0
libcalculator: ^1.2.0 copied to clipboard
A mathematical expression evaluator for Dart that handles arithmetic operations, parentheses, decimal numbers, and proper operator precedence with precise calculations.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add libcalculatorWith Flutter:
$ flutter pub add libcalculatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
libcalculator: ^1.2.0Alternatively, 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:libcalculator/libcalculator.dart';