NumberFunctions class

Inheritance

Constructors

NumberFunctions()

Properties

context Contexts
read / write, inherited
currentFileInfo FileInfo
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
index int
read / write, inherited
less TreeApi
read / write, inherited
name String
read / write, inherited
registry Map<String, FunctionRegistryItem>
Method registry: { 'externalName': {'name': internalName, 'listArguments': false} }
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

call(List<Node> args) → dynamic
Call the last valid name of method
inherited
convert(Dimension val, Node unit) Dimension
Convert a number from one unit into another. [...]
init(Contexts context, int index, FileInfo currentFileInfo) → void
Config functions with the necessarry information for processing
inherited
isValid(String name) bool
Check if name is a method name available
inherited
max(List<Node> arguments) Node
Returns the highest of one or more values. [...]
min(List<Node> arguments) Node
Returns the lowest of one or more values. [...]
mod(Dimension a, Dimension b) Dimension
Returns the value of the first argument modulus second argument. Returned value has the same dimension as the first parameter, the dimension of the second parameter is ignored. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
percentage(Node n) Dimension
Converts a floating point number into a percentage string. [...]
pi() Dimension
Returns π (pi); [...]
pow(dynamic x, dynamic y) Dimension
Returns the value of the first argument raised to the power of the second argument. Returned value has the same dimension as the first parameter and the dimension of the second parameter is ignored. [...]
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited