MathCustomFunctionsImplemented class
Set of custom implemented 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.
- Implemented types
Constructors
-
MathCustomFunctionsImplemented(Set<
MathDefinitionFunctionFreeformImplemented> definitions) -
Creates a set of custom defined functions
const
Properties
-
definitions
→ Set<
MathDefinitionFunctionFreeformImplemented> -
Expected 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
override
-
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) → MathDefinitionFunctionFreeformImplemented -
Get a declaration by its descriptor
override