FLUTTER ECOSYSTEM

expressions

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

Latest version
0.2.5+3
30-day downloads
612
Likes
102
Pub points
115

Package Overview

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

Overview

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
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add expressions

Categories

Dependencies

Dependency list 4 items

Related projects