Search packages, repositories and app categories

Package detailsv0.2.5+3

expressions

A library to parse and evaluate simple dart and javascript like expressions.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.6K
Likes
102
Pub points
115

Install package

flutter pub add expressions

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dart library that enables parsing and evaluating simple expressions similar to those in Dart and JavaScript. It supports basic arithmetic, logical operations, variable substitution, and function calls, making it ideal for dynamic calculations within applications. The package is lightweight and designed for use in scenarios requiring runtime expression evaluation without the complexity of full scripting engines. It works across all major platforms including mobile, web, and desktop.

Use cases

  • Dynamic form calculations
  • Real-time data filtering
  • Configurable business rules
  • Mathematical formula evaluation
  • User-defined expression inputs

Key features

  • Supports arithmetic and logical operators
  • Variable and function substitution
  • Cross-platform compatibility
  • Simple and intuitive API
  • Lightweight and fast evaluation

Suitable for

  • Apps needing runtime math expressions
  • Configuration-driven logic
  • Educational tools with formula input
  • Data processing with user-defined rules

Considerations

  • Not suitable for complex scripting
  • Limited to basic expression syntax
  • Security risks with untrusted input
  • No support for advanced programming constructs
  • Requires careful validation in production

Categories

Dependencies

Dependency list 4 items

Projects using this package