The minus operator performs a subtraction.
- Inheritance
- Object
- Expression
- BinaryOperator
- Minus
Constructors
Properties
- first → Expression
-
read / write, inherited
- hashCode → int
-
Get a hash code for this object.…
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - second → Expression
-
read / write, inherited
Operators
-
operator *(
Expression exp) → Expression -
Multiply operator. Creates a Times expression.
inherited -
operator +(
Expression exp) → Expression -
Add operator. Creates a Plus expression.
inherited -
operator -(
Expression exp) → Expression -
Subtract operator. Creates a Minus expression.
inherited -
operator /(
Expression exp) → Expression -
Divide operator. Creates a Divide expression.
inherited -
operator ==(
other) → bool -
The equality operator.…
inherited -
operator unary-(
) → Expression -
Unary minus operator. Creates a UnaryMinus expression.
inherited -
operator ^(
Expression exp) → Expression -
Power operator. Creates a Power expression.
inherited
Methods
-
derive(
String toVar) → Expression -
Derives this expression with respect to the given variable.
-
evaluate(
EvaluationType type, ContextModel context) → dynamic -
Evaluates this expression according to given type and context.
-
noSuchMethod(
Invocation invocation) → dynamic -
noSuchMethod
is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed tonoSuchMethod
in anInvocation
. IfnoSuchMethod
returns a value, that value becomes the result of the original invocation.…inherited -
simplify(
) → Expression -
Possible simplifications:…
-
toString(
) → String -
Returns a string version of this expression. Subclasses should override this method. The output should be kept compatible with the
Parser
.