FLUTTER ECOSYSTEM

expression_language

Library for parsing and evaluating simple expression language with additional references

Latest version
1.0.1
30-day downloads
167
Likes
29
Pub points
130

Package Overview

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

Overview

A Flutter/Dart package for parsing and evaluating simple expression language with support for custom references. It enables dynamic computation within apps by interpreting expressions like '2 + 3 * x' where variables can be resolved from external sources. Ideal for forms, calculations, or rule-based logic, it supports multiple platforms including mobile, web, and desktop. The library is lightweight and designed for integration into applications requiring flexible, runtime expression evaluation.

Use cases
  • Dynamic form calculations
  • Rule-based business logic
  • Real-time data transformations
  • Interactive dashboards
  • Configurable app behavior
  • Mathematical expression evaluation
Key features
  • Supports variable references
  • Easy to integrate with existing code
  • Cross-platform compatibility
  • Lightweight parser engine
  • Extensible reference resolution
  • Safe expression evaluation
Suitable for
  • Developers building dynamic forms
  • Apps needing runtime math expressions
  • Tools with configurable logic
  • Educational apps with math features
  • Applications with user-defined rules
Considerations
  • Not suitable for complex mathematical functions
  • Requires careful handling of untrusted input
  • Limited to basic arithmetic and logical operations
  • No built-in error recovery mechanisms
  • Performance may vary with large expressions
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add expression_language

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects

No data available yet.