DefaultComputeContext class

A default, complete implementation of ComputeContext.

Implemented types

Constructors

DefaultComputeContext({bool convertDegreesToRadians = false})
Creates the context.
const

Properties

convertDegreesToRadians bool
When using functions asking for angles, automatically convert the degrees to radians to compute them.
final
hashCode int
The hash code for this object.
no setterinherited
letterChecker RegExp
Needed to check if a char can be part of a call (defaults to the latin alphabet.)
no setteroverride
numberChecker RegExp
Based off of Rational's parsing regex (edited)
no setteroverride
registeredConstants List<Constant>
A list of constants, defaults to basic constants (pi, e, etc.)
no setteroverride
registeredFunctions List<MathFunction>
A list of functions, defaults to basic functions (sin, cos, etc.)
no setteroverride
registeredModifiers List<Modifier>
A list of modifiers, defaults to basic modifiers (factorials, plus, minus etc.)
no setteroverride
registeredOperators List<Operator>
A list of operators, defaults to basic operators (plus, minus, etc.)
no setteroverride
registeredTokens List<TokenType>
A list of token types, defaults to basic token types (numbers, operators, brackets, etc.)
no setteroverride
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