digia_expr 0.0.15 copy "digia_expr: ^0.0.15" to clipboard
digia_expr: ^0.0.15 copied to clipboard

A powerful and flexible expression evaluator for Dart, designed to dynamically process expressions with support for variables, custom functions, and string interpolation. This package is developed for [...]

example/digia_expr_example.dart

import 'package:digia_expr/digia_expr.dart';

void main() {
  // final code = "'Hello World \${sum(mul(x,4),y)}!'";
  final code = "condition(condition(true, false, true), 'Hey', 'Hello')";

  final context = BasicExprContext(variables: {'x': 10, 'y': 2});

  final result = Expression.eval(code, context);
  print('---------ASTEvaluator----------');
  print(result);
}
2
likes
95
points
491
downloads

Publisher

verified publisherdigia.tech

Weekly Downloads

A powerful and flexible expression evaluator for Dart, designed to dynamically process expressions with support for variables, custom functions, and string interpolation. This package is developed for internal use within `digia_ui` and is not intended for general public consumption.

Documentation

API reference

License

unknown (license)

Dependencies

collection, intl, json_path, moment_dart, qs_dart

More

Packages that depend on digia_expr