Skip to content
Open in Anthropic

Installation

Prerequisites

  • Dart SDK >= 3.0.0
  • Flutter (optional, for Flutter projects)

Add the Dependency

Add TeXpr to your pubspec.yaml:

yaml
dependencies:
  texpr: ^0.0.1

Then run:

bash
dart pub get
bash
flutter pub get

Verify Installation

dart
import 'package:texpr/texpr.dart';

void main() {
  final evaluator = Texpr();
  print(evaluator.evaluate(r'2 + 2')); // 4.0
}

Next Steps

Continue to Quick Start to learn the basics.

Made with ❤️ by TeXpr, Docs Inspired by ElysiaJS