MathVariable class
A math variable
This value is being set from the MathNode.calc method and being passed to every subnode.
The variable is being replaced by the passed value during calculation.
- Inheritance
-
- Object
- MathExpression
- MathNode
- MathVariable
- Available Extensions
Constructors
- MathVariable(String variableName)
-
Creates a new variable which will be replaced by a corresponding value
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variableName → String
-
Designed variable name
final
Methods
-
calc(
MathVariableValues values, {MathCustomFunctionsImplemented customFunctions = const MathCustomFunctionsImplemented({})}) → num -
Evaluate the expression
override
-
getUsedFreeformFunctions(
) → Set< MathDefinitionFunctionFreeform> -
Get mentioned custom defined functions that are required to evaluate the expression
override
-
getUsedVariables(
) → Set< String> -
Get mentioned variables that are required to evaluate the expression
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited