MathCustomFunctions class

Set of custom functions

To declare a custom function, implement MathDefinitionFunctionFreeform or MathDefinitionFunctionFreeformImplemented interface and pass it as a member of the set when constructing this class.

When using MathNodeExpression.fromString, you can omit implementing the functions, but MathExpression.calc will require you to pass a MathCustomFunctionsImplemented instance instead, which requires the functions to have the calc method. If you pass MathDefinitionFunctionFreeformImplemented in fromString, you won't need to declare the implementation when parsing.

Implementers

Constructors

MathCustomFunctions(Set<MathDefinitionFunctionFreeform> definitions)
Creates a set of custom functions
const

Properties

definitions Set<MathDefinitionFunctionFreeform>
Function definitions
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

byName(String name) MathDefinitionFunctionFreeform?
Get a declaration by its name
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
operator [](MathDefinitionFunctionFreeform key) MathDefinitionFunctionFreeform
Get a declaration by its descriptor