NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #3106 most downloaded on pub.dev
Process math expressions, like formulas or parts of equations, convert them to machine-readable form, and calculate them.
Last release 1 years ago
30 Apr 2025
Release timing varies
gaps range from 8 days to 2.0 years
Nearly every release is documented
notes for 8 of 8 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
9 releases · first in 2021
One column per quarter.
Added MathComparison.evaluate() - by jersonal-com
MathComparison.evaluate() - by jersonal-comIncreased upper SDK constraint to declare support for Dart 3
Now the ' symbol is allowed for variable and function names so you can have variables like y' .
' symbol is allowed for variable and function names so you can have variables like y'.>= and <=.Define custom functions and redefine built-in functions when parsing an expression. See docs and example.
MathNodeExpression.getPotentialFunctionNames() to detect potentiallyMathExpression.getUsedFreeformFunctions().MissingFunctionArgumentListException renamed toOutOfRangeFunctionArgumentListExceptionMathNodeExpression.fromString() may throw other errors besidesMathExceptionMathNodeExpression.getPotentialVariableNames() is replaced byMathNodeExpression.getPotentialDefinable()log[base](arg), you should pass log(base, arg) syntax nowUnexpectedClosingBracketException and BracketsNotClosedException canInvalidFunctionNameException,DuplicateDeclarationException, InvalidFunctionArgumentsDeclaration.1.3.1 Variable validation fix
Important change: MathNode is now a class of MathExpression interface. Compared to MathNode, MathExpression may return null in calc() method.
MathNode is now a class of MathExpression interface.calc() method.getUsedVariables() method for MathExpression and MathNode.MathVariableMathExpression object family - MathComparison:
MathComparisonEquation (=)MathComparisonGreater (>)MathComparisonLess (<)MathNodeExpression.fromStringExtended() method allows you tofromString,MathExpression instead of MathNode, since comparisonsMathNodeExpression.getPotentialVariableNames() analyzes givenMathNodeExpression.builtInVariables gives a list of built-inMathNodeExpression.isVariableNameValid() lets you check ifCantProcessExpressionException.You need to pass an instance of MathVariableValues instead of a num to the calc() function now
MathFunctionXdeprecated.MathVariable introduced.MathVariableValues instead of a num to the calc() function nowmath_parser_integrateYou need to pass an instance of MathVariableValues instead of a num to the calc() function now.
MathFunctionXdeprecated.MathVariable introduced.MathVariableValues instead of a num
to the calc() function now.Initial release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →