FormulaEngine class
Engine that evaluates Excel-like formulas
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
evaluate(
String formula, Map< String, dynamic> data, Map<String, String> variables) → dynamic - Evaluates a formula with the given data
-
extractVariables(
String formula) → List< String> - Extracts the variables of a formula
-
formatResult(
dynamic result, String? format) → String - Formats the result with the given format
-
getRequiredFields(
String formula, Map< String, String> variables) → List<String> - Returns the data fields a formula needs
-
validateSyntax(
String formula) → bool - Validates the syntax of a formula