string_equation 1.0.1 copy "string_equation: ^1.0.1" to clipboard
string_equation: ^1.0.1 copied to clipboard

ConditionEquation is a powerful Dart package that allows you to dynamically evaluate both logical and mathematical expressions from a string format.

example/string_equation_example.dart

import 'package:string_equation/string_equation.dart';

void main() {
  var value = ConditionEquation().evaluateExpression("(2+3)");
  var value2 = ConditionEquation().evaluateExpression("(2<3)");
  var value3 = ConditionEquation().evaluateExpression("(2<3) && (4>5) || (4==4) && (3<2)");
  print(value);
  print(value2);
  print(value3);
}
2
likes
0
points
212
downloads

Publisher

unverified uploader

Weekly Downloads

ConditionEquation is a powerful Dart package that allows you to dynamically evaluate both logical and mathematical expressions from a string format.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

intl, vector_math

More

Packages that depend on string_equation